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 Search

HTML <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

HTML-Input-Type-Search

**Supported Browsers

Similar Reads