HTML aria-activedescendant ARIA Attribute
The aria-activedescendant attribute points to the child of a composite widget that is currently active, while keyboard focus stays on the widget itself.
Description
The aria-activedescendant attribute identifies the active descendant of a composite widget, such as the highlighted option in a listbox or combobox. DOM focus stays on the container (or on the text field of a combobox), and the attribute holds the id of the item that should be treated as focused. Screen readers announce that item as if it had received focus.
This is one of two ways to manage focus inside a widget. The other is a "roving tabindex", where focus really moves from item to item. aria-activedescendant is useful when focus has to stay in one place, for example in a combobox where the user keeps typing while moving through suggestions with the arrow keys.
The element with the attribute must be focusable (natively, or with tabindex="0"), and the referenced element must be a descendant of it or owned by it through aria-owns or aria-controls. Update the value with JavaScript as the user moves, and scroll the active item into view, because browsers do not do this for you. Give the active item a visible highlight too, since there is no focus ring on it.
Properties
Syntax
<element aria-activedescendant="id">
Values
- ID referenceThe
idof the currently active child element.
Example
Browser Support
The following information will show you the current browser support for the aria-activedescendant ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





