ARIA States & Properties
aria-activedescendant
Keeps DOM focus on a composite or controlling input while reporting a particular descendant as active. Update it as keyboard navigation changes the active item; ensure the reference meets the ownership rules. It does not move DOM focus or scroll the active item into view. Value type: ID reference. Accepted values: ID of active owned or controlled item. Default or omitted behavior: none. Applicable context: listbox, combobox, other supported composite roles; static structure only. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.
Formal Syntax & Structure
html syntaxhtml
aria-activedescendant="apple"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-activedescendant | ID reference | Accepted values: ID of active owned or controlled item. Default or omitted behavior: none. Context: listbox, combobox, other supported composite roles; static structure only. Requiredness depends on the role. |
Working Example
Example Snippethtml
<div role="listbox" aria-label="Fruit" tabindex="0" aria-activedescendant="apple"> <div role="option" id="apple" aria-selected="true">Apple</div></div>