ブックマーク / bitsofco.de (1)

  • Anchors vs Buttons | bitsofcode

    For the longest time, web developers (myself included) have been using <a>s, <div>s, <span>s, and everything but <button>s to create interactive clickable elements. It would typically go something like this - <a href="#" role="button" onclick="openMenuModal();">Navigation</a> Don't do this A non-actionable or meaningless href is applied to the anchor element so that the user isn't navigated away f

    Anchors vs Buttons | bitsofcode
    musign
    musign 2018/05/11
  • 1