user3433451
user3433451

Reputation: 101

What is the correct ARIA tag for HTML5 number fields

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

Upvotes: 0

Views: 149

Answers (2)

unor
unor

Reputation: 96567

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.

Upvotes: 0

nickytonline
nickytonline

Reputation: 6981

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

Upvotes: 1

Related Questions