HTML <input type="search"> (original) (raw)
Last Updated : 20 May, 2024
The **HTML element creates a search input field. It allows users to enter search queries. It typically includes features like a clear button to easily remove the entered text and may have a search icon to indicate its purpose. This element is useful for implementing search functionality in web forms.
**Syntax
**Example: This example demonstrates the use of HTML element.
HTML `
HTML Input Type SearchHTML <input type="search">
<form>
<label for="search_field">Search Text:</label>
<input type="search" id="search_field">
<br><br>
<input type="button" value="Search">
</form>
`
**Output
**Supported Browsers
- Chrome 5
- Edge 12
- Firefox 4
- Opera 10.6
- Safari 5