Semantic Elements
HTML <search> element
Identifies controls or content for searching or filtering. It does not implement search by itself. Wrap search or filtering controls in this semantic container, which identifies their purpose as a landmark in supporting accessibility mappings. A form or JavaScript still supplies actual search behavior. It accepts global HTML attributes; individual global features may be inapplicable or restricted.
Formal Syntax & Structure
html syntaxhtml
<search>Search controls</search>Return Value
HTMLElement
Content model: Flow content; context-specific ancestor restrictions may apply.
Working Example
Example Snippethtml
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>HTML example</title> </head> <body> <search> <form action="/search"> <label> Find <input name="q" type="search"> </label> <button>Search</button> </form> </search> </body></html>