Creates a search field. It contains a single-line text input control with a search history dropdown list.
All searches in this field are saved into the search history under the category specified by the autosave attribute. If the autosave attribute of two different search tags contain identical values, the searches belonging to these fields are saved under the same category of the history.
Use a unique category name (for example, the domain where the site is) to avoid the mixing of categories. If the autosave attribute is not defined, then the history dropdown list is invisible, and the searches are not saved into the history.The results attribute specifies how many elements are visible in the dropdown list of the search history.
This control is one of the form controls.
The contents of the control can be submitted to a server if the following conditions are met:
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
Example HTML code 1:
This example illustrates the use of the search input element:
Did you find this example helpful?
User Contributed Comments