<input type="search"/> or
<input type="search" />
HTML5 only. Creates a one-line text input control for entering a search query.
This is an empty element. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a trailing slash as just shown. Developers may include a space character before the slash for backward compatibility with older browsers.
on) or requires the user to enter the information every time (
off). Omitting this attribute causes the control to inherit the
autocompletesetting for the associated
datalistelement. The value of the list attribute is the
idof the associated
reset. Assigns a name to the control; a script program uses this name to reference the control.
titleattribute can be used with
patternto provide a description of the expected pattern/format of the input.
typeis set to
search), measured in number of characters. Users may type entries that are longer than the space provided, causing the field to scroll to the right.
<input type="search" name="srch" size="25" value="Search term">