What is the correct ARIA tag for HTML5 number fields

122 Views Asked by At

I know that for text fields you can use the ARIA tag role="textbox" but what about the HTML5 number field?

2

There are 2 best solutions below

0
On

From what I read at http://www.w3.org/TR/aria-in-html, the role appears to be role=spinbutton

0
On

Have a look at the HTML5 specification: The number state has the spinbutton role by default (implicitly).

HTML5 recommends not to set this role explicitly.