Javatpoint Logo
Javatpoint Logo

HTML Search Box

The HTML Search Box allows a user to search the content. The Search is a value of type attribute of an <input> element.

Syntax

Examples: The following examples have used the different CSS codes for displaying the different Search boxes on the web page.

Example 1:

Test it Now

Output:

HTML Search Box

Example 2: In this example, we have not used the search value of the type attribute of an input element. But we have used the text input field using CSS, which is working as a search field.

Test it Now

Output:

HTML Search Box

Browser Support

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
search boxYesYesYesYesYes





Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA