The <search> element marks a container for search or filter UI — site search forms, page filters, or find bars — so assistive technology can jump to it as a search landmark.
Put controls such as <form> and <input type="search"> inside it. Do not use <search> to wrap the result list itself.
Baseline · Widely available.
Stable across browsers since about October 2023. Prefer it over <div role="search">.
Landmark note.
<search> already exposes the search role. Skip redundant role="search". Label multiple searches with title or aria-label.
Syntax
HTML Syntax
syntax.html
<search>…controls…</search>
Both start and end tags are required. Content is flow content (often a form with a search input).
Reference
Attributes
<search> has no element-specific attributes. Use global attributes; these are the ones you will reach for most often:
Attribute
Description
Try it
(none specific)
No tag-only attributes — meaning comes from the element itself
One line: wrap search/filter controls in <search>, not the results.
UA style
Default CSS Settings
User-agent stylesheets typically treat <search> like other sectioning blocks:
default.css
search {
display: block;
}
Layout (header bar, sidebar filter panel) comes from your CSS — not from the tag itself.
Frequently Asked Questions
The search element is a container for form controls or other content used to search or filter — site search, page filters, or app find bars. It exposes an implicit search landmark.
No. search supports only the global HTML attributes. Use title or aria-label when a page has more than one search landmark.
No. Present results in the main content. Quick suggestions that are part of the search UI may stay inside search; the result list itself usually should not.
Not if you use search. The element already has the implicit search role, so prefer the real tag over a div with role="search".
Yes when the query submits to a server. Pair search with form and input type="search". Pure client-side filters can omit form if nothing is submitted.
Yes — for example a site-wide header search and a page filter. Distinguish them with title or aria-label so landmarks stay clear.