ARIA option Role
The option role marks a selectable item in a listbox, such as one choice in a custom select menu. The option element has this role.
Description
The option role identifies a selectable item in a listbox. It must be contained in, or owned by, an element with the listbox role (or a group within one). The <option> element in a <select> or <datalist> has this role.
Use aria-selected to show which options are selected. Options should only contain plain text: interactive content such as links or buttons inside an option can't be reached by assistive technology users.
Custom listboxes take a fair amount of keyboard scripting. Where you can, use a native <select>, which now supports custom styling in modern browsers.
Use the native HTML <option> element where you can: it already has the option role, with the expected keyboard and browser behavior built in.
Properties
ARIA Attributes
- Required
- None
- Supported
aria-checked,aria-posinset,aria-selected,aria-setsize- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="option">
Example
Browser Support
The following information will show you the current browser support for the option ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





