The <search>
HTML element is a container representing the parts of the document or application with form controls or other content related to performing a search or filtering operation. The <search>
element semantically identifies the purpose of the element's contents as having search or filtering capabilities. The search or filtering functionality can be for the website or application, the current web page or document, or the entire Internet or subsection thereof.
Definition and Usage
The <search>
tag is used to specify that here comes a set of elements that is related to search.
Elements inside a <search>
elements can typically be form elements used to perform a search.
Note: The <search>
element does not render as anything special in a browser. However, you can use CSS to style the <search>
element and its content.
Browser Support
Global Attributes
The <search>
tag also supports the Global Attributes in HTML.
Event Attributes
The <search>
tag also supports the Event Attributes in HTML.