Skip to main content

HTML Guide

The “searchbox” role is unnecessary for an “input” element that has no “list” attribute and whose type is “search”.

The role="searchbox" attribute is redundant on an <input type="search"> without a list attribute and should be removed.

According to the HTML and ARIA specifications, an <input> element with type="search" is already recognized by assistive technologies as a search box. Adding role="searchbox" does not provide additional meaning and is considered unnecessary and potentially confusing by validators.

Incorrect usage:

<input type="search" role="searchbox" placeholder="Search...">

Correct usage:

<input type="search" placeholder="Search...">

Learn more:

Related W3C validator issues