Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/myscript/public_html/classes/classdb.php on line 42
Search Attribute | Input Types | HTML5 Tutorial | Example

search attribute

<input type=search>


Search Attribute is used to enter the value in the input field. It acts like a normal text field.

Example Code:

Result :

Enter the text:
  • If a text is entered in the input field, then the "Cross" symbol appears in right corner of the field.
  • Use the cross symbol to delete the unnecessary text entered in the input field.


It will function only in Chrome and Safari browsers.

Ask Questions

Ask Question