ARIA Landmark Roles
ARIA role: search
A region for finding content or information. Native search element is another option. Label multiple search landmarks; the input alone is not a search landmark. 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="search"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token search; use only where allowed. Omit when native semantics match. |
Working Example
Example Snippethtml
<form role="search" aria-label="Site search"> <label> Search <input type="search" name="q"> </label> <button>Search</button></form>