WebAIM - Web Accessibility In Mind

E-mail List Archives

Do Web developers tend to dislike the button element?

for

From: jeffgutsell
Date: Aug 12, 2020 1:09PM


My credit union has had a fairly accessible Web site for several years. So,
I was surprised recently when a site update included replacing the login
button with a span "button" that was inaccessible. They fixed this after I
complained, but it once again got me to wondering why so many developers
like to use a span for this. Aside from accessibility concerns, it seems
like the button element is less work for the developer.

So, why do span buttons refuse to die? Is it that developers have some
dislike of buttons elements?

Jeff Gutsell