HTML <input type="search">

❮ HTML <input> tag ❮ HTML <input> type attribute

Example

<input type="search" id="srch" name="srch">

Meaning

A single-line text field for entering search strings.

Line-breaks are automatically removed from the input value. May include a delete icon in supporting browsers that can be used to clear the field. Displays a search icon instead of enter key on some devices with dynamic keypads.

Additional Attributes


Standard Syntax

HTML: <input type="search">

XHTML: <input type="search" />



Browser Support




Status







❮ HTML <input> tag ❮ HTML <input> type attribute