<search>: The HTML Search Element

I. Description

The HTML <search> element is used to encapsulate html <form> elements or other html elements which provide search or filtering functions to the user.

II. Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Search Example</title>
    </head>
    <body>
        <h1>Search Example</h1>
        <search>
            <form id="search" action="/api/search" method="POST">
                <label for="value_search" title"Search">Search</label>
                <input id="value_search" name="value_search" type="text" placeholder="Search" required/>
                <button type="submit">Search</button>
            </form>
        </search>
    </body>
</html>

This document was last updated: