Favorites

HTML <search> Tag

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
<search>
HTML TagThis tag is supported by all modern browsers.
Updated 22nd November 2026

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

<header>
<search>
<form action="/search">
<label for="q">Search this site</label>
<input type="search" id="q" name="q">
<button>Search</button>
</form>
</search>
</header>
Open in editor

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.

This tag is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee