1.2. Mark up the search field with role="search"

The website search field should be identified with role="search".

<form role="search" …>
  <input type="text" title="Keyword Search" />
  <input type="submit" value="Search" />
</form>

Warning

A page can only contain one role="search".

Find out more

Comments

Add a comment

Required fields are marked *.

Back to top