Favorites

ARIA searchbox Role

searchbox
ARIA Widget RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

The searchbox role marks a text field used for entering search terms. An input with type search has this role.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

The searchbox role is a type of textbox intended for entering a search query. Screen readers announce it as a search field. The <input type="search"> element has this role, unless it has a list attribute, in which case it is a combobox.

Don't confuse it with the search landmark, which goes on the area or form containing the search field. Usually you use both: a <search> element (or role="search" on the form) wrapping an <input type="search">. If the field shows suggestions as the user types, make it a combobox instead.

Use the native HTML <input> element where you can: it already has the searchbox role, with the expected keyboard and browser behavior built in.

Properties

Category
Widget
HTML equivalent
<input>
Accessible name from
author
Required parent role
None
Required child roles
None

ARIA Attributes

Syntax

<element role="searchbox">

Example

<search>
<label for="s">Search articles</label>
<input id="s" type="search">
</search>

<div id="sl">Filter</div>
<div role="searchbox" contenteditable="true" aria-labelledby="sl" style="border:1px solid #888;width:200px;padding:2px"></div>

Browser Support

The following information will show you the current browser support for the searchbox ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee