ARIA Widget Roles

ARIA role: combobox

Build a form with the HTML form generator

An input or button controlling a popup that assists value selection. Native single-select is appropriate for simple choices. Custom combobox requires aria-expanded and a name; connect popup with aria-controls when displayed and implement arrow keys, Escape, selection and focus according to the popup pattern. The example demonstrates a native equivalent or preferred alternative and deliberately omits redundant ARIA. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.

Formal Syntax & Structure

html syntaxhtml
role="combobox"

Parameters & Attributes

NameTypeDescription
roletokenExplicit role token combobox; use only where allowed. Omit when native semantics match.
aria-expandedboolean or undefinedRequired for this custom role unless equivalent host semantics apply. Reports whether content controlled or owned by an element is expanded or collapsed. Use on the actual controlling widget; omit when it has no expandable content. It does not show or hide content automatically. Values: true, false, undefined.
aria-controlsID reference listRelevant when applicable. Identifies elements whose content or presence is controlled by a widget. The relationship does not implement the action. Use valid IDs and synchronize the controlled region with the control state. Values: space-separated IDs of controlled elements.
aria-autocompletetokenRelevant when applicable. Describes how an editable text control predicts or completes input. It does not create suggestions; provide the corresponding popup or inline completion and keyboard behavior yourself. Distinct from HTML autocomplete, which provides autofill hints. Values: none, inline, list, both.
aria-activedescendantID referenceRelevant when applicable. 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. Values: ID of active owned or controlled item.
aria-haspopuptokenRelevant when applicable. Identifies the availability and type of interactive popup. True is equivalent to menu, not a generic yes value for every popup. Match the popup's actual role and implement its interaction and focus behavior separately. Values: false, true, menu, listbox, tree, grid, dialog.

Working Example

Example Snippethtml
<label for="city">City</label><select id="city">  <option>Baku</option>  <option>Stockholm</option></select>
HTML Reference