adhocracy3
adhocracy3 copied to clipboard
Proper use of <a> and <button>
We almost never use a <button>
element and often have <a>
elements without a proper href
attribute. This should be fixed:
- Links (used for navigation) should use the
<a>
element with a properhref
. - We will have to change our current practice of using
goToCameFrom(fallback)
in a click handler - Buttons (used to trigger actions) should use the
<button>
element.
Reference: http://formidable.com/blog/2014/05/08/anchors-buttons-and-accessibility/
Won't be changed.