Open In App

HTML | <input type=”search”>

Last Updated : 02 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <input type=”search”> is used to define a text field that entered a search string

Syntax: 

<input type="search">

Example: 

HTML




<!DOCTYPE html>
<html>
 
<head>
    <title>
        HTML Input Type Search
    </title>
</head>
<style>
    #Geek_p {
        font-size: 30px;
        color: green;
    }
</style>
 
<body style="text-align:center;">
 
    <h1 style="color:green;">
            GeeksForGeeks
        </h1>
 
    <h2>HTML &lt;Input Type="search"&gt;
</h2>
    <form>
        Type a URL:
        <input type="search">
        <br>
        <br>
    </form>
</body>
 
</html>


Output:

  

Supported Browsers:

  • Google Chrome 5 and above
  • Firefox 4.0 and above
  • Edge 12 and above
  • Opera 10.6 and above
  • Internet Explorer 10 and above
  • Apple Safari 5 and above

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads