HTML <search> Tag
Description
The <search> element represents a part of a document that contains search or filtering controls: a site search form, a filter panel for a product list, or a "find in this page" box. It is a semantic container, exposed to assistive technology as a search landmark, so screen reader users can jump straight to it.
Before <search> existed, the same meaning required <form role="search"> or <div role="search">. The element itself has no behaviour and no default styling; put a <form> inside it if the search is submitted to a server, or use it on its own when filtering happens with JavaScript. The search results are not part of the <search> element; they belong in the main content.
Properties
- Permitted Parents
- Any element that accepts flow content
- Content
- Block, inline and text
- Start/End Tags
- Start tag: required, End tag: required
Example
Attributes
None
Global Attributes
The <search> tag also supports the Global Attributes in HTML5
Event Attributes
The <search> tag also supports the Event Attributes in HTML5
Browser Support
The following information will show you the current browser support for the HTML <search> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.
Desktop





Tablets & Mobile





