Skip to main content

html-tags.com

<search>

A landmark wrapping search or filtering functionality — the semantic replacement for role='search'.

Baseline: Widely available · Sectioning & landmarks

When to use it

Around the form (and results controls) for site search, filtering, or any find-things UI.

When not to

It contains the search UI; it is not the input itself — that's input type='search' inside it.

Example

<search>
  <form action='/search' method='get'>
    <label for='q'>Search</label>
    <input type='search' id='q' name='q'>
    <button type='submit'>Go</button>
  </form>
</search>
Rendered live above, source below.

Authoritative references