ARIA Landmark Roles

ARIA role: search

Build a form with the HTML form generator

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

NameTypeDescription
roletokenExplicit 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>
HTML Reference