Favorites

HTML aria-selected ARIA Attribute

aria-selected
ARIA AttributeThis ARIA attribute is supported by all modern browsers.
Updated 28th November 2026

The aria-selected attribute gives the selected state of an item in a widget that supports selection, such as a tab, an option in a listbox or a cell in a grid.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

The aria-selected attribute indicates whether an item is selected. It is used on the items of widgets that support selection: tabs in a tab list, options in a listbox, items in a tree, and rows or cells in a grid. Screen readers announce the state, for example "Overview, tab, selected".

In a single-select widget, only one item has aria-selected="true" and the others should have false, which tells users they are selectable. In a multi-select widget, set aria-multiselectable="true" on the container and set the state on every item. Update the value with JavaScript as the selection changes.

Selection is not the same as being checked or current. For checkboxes and radio buttons use aria-checked, and for the current page in navigation use aria-current.

Properties

Type
Widget
Value
true/false/undefined
Default
undefined
Used with
columnheader, gridcell, option, row, rowheader, tab, treeitem

Syntax

<element aria-selected="true | false">

Values

  • trueThe item is selected.
  • falseThe item can be selected but is not selected.
  • undefinedThe default: the item can't be selected.

Example

<ul role="listbox" aria-label="Colour" tabindex="0" style="list-style:none;padding:0;width:120px">
<li role="option" aria-selected="false">Red</li>
<li role="option" aria-selected="true">Green</li>
<li role="option" aria-selected="false">Blue</li>
</ul>
<style>[role=option]{padding:4px}[aria-selected=true]{background:#2563eb;color:#fff}</style>
<script>
document.querySelectorAll('[role=option]').forEach(function (o) {
o.addEventListener('click', function () {
document.querySelectorAll('[role=option]').forEach(function (x) { x.setAttribute('aria-selected', x === o); });
});
});
</script>

Browser Support

The following information will show you the current browser support for the aria-selected ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.

This ARIA attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee