asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > INPUT type=search Element

<input type=search> Element


Creates a single-line text entry control for search queries.HTML 5

HTML Syntax

NOTE: Only the <input> start tag must be present. The element has no end tag.

Remarks

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.

Attributes

The <input_search> element supports the following attributes, in addition to global attributes and attributes common to all HTML input elements.

Example

The following example shows how a simple <input type=search> control renders on a web page.

<input type=search>

External References

See Also

INPUT   INPUT type=email   INPUT type=url   TEXTAREA


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note