Forms & Controls

inputmode="search"

Build a form with the HTML form generator

Hints at a keyboard optimized for search queries. The keyboard may show a search action; the application still needs a form or handler to execute a search. Global keyboard hint for editable content; the actual keyboard depends on device, locale and browser. It changes neither input type nor validation.

Formal Syntax & Structure

html syntaxhtml
inputmode="search"

Parameters & Attributes

NameTypeDescription
inputmodekeywordHints at a keyboard optimized for search queries. The keyboard may show a search action; the application still needs a form or handler to execute a search.

Working Example

Example Snippethtml
<label>  Search query  <input type="text" inputmode="search"></label>
HTML Reference