Last Updated: February 25, 2016
·
1.068K
· martijndevalk

Links are not buttons. Neither are DIVs and SPANs

  • DIVs and SPANs are not buttons
  • If it navigates, it is a link. Use link markup with a valid hypertext reference
  • If it triggers an action, it is a button. Use a BUTTON element
  • If you don’t like how a button looks, style it with CSS.

Read more: http://www.karlgroves.com/2013/05/14/links-are-not-buttons-neither-are-divs-and-spans

3 Responses
Add your response

Martijn, als dit publiekelijk is, is het misschien ook netjes om de source er bij te zetten ;)

over 1 year ago ·

Done. :)

over 1 year ago ·

On this note, I'd like to add that a link wrapped in a button doesn't work in IE8 and below. Why would anyone do such a thing? It's an attempt at trying to make a link look like a button (instead of using styling directly on the link element or a containing span). Learned that one the hard way!

over 1 year ago ·