WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Form Submit or Button versus link (href) with action

for

From: Michael.Moore@dars.state.tx.us
Date: Nov 8, 2010 7:54AM


On Sat, Nov 6, 2010 at 11:32 AM, Susan Grossman wrote:

>  I do wonder  though if there is a way to tell JAWS that the href is acting
> as a button so the "b" will work?

Jared replied

<a role="button" ...>

That will do the trick in ARIA supported screen reader and browser combinations.

Mike Notes,

This is still not a semantically correct option and will cause issues particularly in complex enterprise level web applications. Best practice is to use buttons for things that look like buttons and links for things that look like links. ARIA roles are quite useful but semantic meaning should still be present to allow for graceful degradation.