WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Do Web developers tend to dislike the button element?

for

From: glen walker
Date: Aug 12, 2020 1:16PM


Most developers are lazy (I'm one), although "efficient" is probably a
better term than "lazy". I will always use code that's simpler and that
typically means using a button. However, if I had code that used a <span>
for a button and I copy/paste that code to my new page rather than writing
a button from scratch, that would be one reason it keeps propagating. But
I wouldn't intentionally change a real button to a span button.

On Wed, Aug 12, 2020 at 1:09 PM < <EMAIL REMOVED> > wrote:

> 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
>
> > > > >