Creates a single-line text entry control for search queries. | HTML 5 |
HTML Syntax
<input type = search
list = datalist_id
maxlength = number
minlength = number
multiple
name = control_name
size = number
>
NOTE: Only the <input
> start tag must be present. The element has no end tag.
The <input type=search
> element is a text field designed for the user to enter search queries into.
The control is functionally identical to text inputs, but the appearance may vary depending on the browser and operating system.
<input type=search
> may be specified with size, to indicate how wide in characters the input field should be, and with minLength and maxLength to restrict the number of characters that the user can enter into the search field.
The <input_search>
element supports the following attributes, in addition to global attributes and attributes common to all HTML input elements.
The following example shows how a simple <input type=search
> control renders on a web page.
<input type=search>
INPUT INPUT type=email INPUT type=url TEXTAREA