The spinbutton role
Semantics
A form of range that expects the user to select from among discrete choices.
Abstract Role
WidgetRepresents a focusable, interactive element.
Content Category
Phrasing ContentAn element that typically appears inline and provides semantic meaning to text content.
Allowed Descendants
Flow Children Allowed
No main element descendants allowed.
Usage
Elements that can designate the role in HTML:
input[type=number]
input[type=text][role=spinbutton]
span[role=spinbutton]
custom-element[role=spinbutton]