ARIA search Role
The search role marks the part of a page that holds the site search, usually a form with a search box and button. The search element has this role.
Description
The search role identifies the area of the page used to search: the site search, or a search for the content of the page or an app. It is a landmark. Landmarks let screen reader users list the main areas of a page and jump straight to one of them.
The <search> element has this role natively and is supported in all current browsers. Wrap it around the search <form>, or put role="search" on the form itself for older browsers. Don't confuse it with the searchbox role, which is for the text field inside.
If a page has more than one search area, such as a site search and a product filter, give each a name with aria-label.
Use the native HTML <search> element where you can: it already has the search role, with the expected keyboard and browser behavior built in.
Properties
- Category
- Landmark
- HTML equivalent
<search>- Accessible name from
- author
- Required parent role
- None
- Required child roles
- None
ARIA Attributes
- Required
- None
- Supported
- None
- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="search">
Example
Browser Support
The following information will show you the current browser support for the search ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





