Search Landmark
Definition
- A
searchlandmark contains a collection of items and objects that, as a whole, combine to create search functionality to content on the website. - ARIA 1.2 Specification:
searchlandmark
Design Patterns
- Use the
searchlandmark instead of theformlandmark when the form is used for search functionality. - If a page includes more than one
searchlandmark, each should have a unique label.
There is no HTML element that defines a search landmark, see the ARIA techniques for defining a search landmark.
A role="search" attribute is used to define a search landmark.
ARIA Example
<form role="search">
<input type="search" aria-label="search text" size="20">
<input type="submit" value="Search">
</form>
<input type="search" aria-label="search text" size="20">
<input type="submit" value="Search">
</form>