Semantics

A type of textbox intended for specifying search criteria.

Additional info from the ARIA specification

See related textbox and search.

Abstract Role

  • WidgetRepresents a focusable, interactive element.

Content Categories

  • Phrasing ContentAn element that typically appears inline and provides semantic meaning to text content.

Allowed Descendants

Flow Children Allowed

No main element descendants allowed.

Usage

Allowed HTML elements

Implicit semantics

These elements have the role semantics by default, without needing to set the role attribute. Reach for elements with native semantics first when choosing how to implement a role in your content.

  • input[type=search]

Explicitly allowed

  • input­[type=­text][role=searchbox]

Elements that can have any role

  • abbr[role=searchbox]
  • address[role=searchbox]
  • b[role=searchbox]
  • blockquote[role=searchbox]
  • canvas[role=searchbox]
  • cite[role=searchbox]
  • code[role=searchbox]
  • custom-element[role=searchbox]
  • data[role=searchbox]
  • del[role=searchbox]
  • dfn[role=searchbox]
  • div[role=searchbox]
  • em[role=searchbox]
  • figure[role=searchbox]
  • i[role=searchbox]
  • ins[role=searchbox]
  • kbd[role=searchbox]
  • mark[role=searchbox]
  • output[role=searchbox]
  • p[role=searchbox]
  • pre[role=searchbox]
  • q[role=searchbox]
  • samp[role=searchbox]
  • small[role=searchbox]
  • span[role=searchbox]
  • table[role=searchbox]
  • tbody[role=searchbox]
  • tfoot[role=searchbox]
  • thead[role=searchbox]
  • time[role=searchbox]
  • u[role=searchbox]
  • var[role=searchbox]