Link
search
Links to a resource that can search the current page and related pages. The target can be a human-facing search page or an OpenSearch description document.
Code examples
Good example
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Example Search">Publishes an OpenSearch description document with its MIME type and title.
Avoid this example
<link rel="search" href="#">Points to a fragment on the current page rather than a usable search resource.
Recommendations
- 01Describe OpenSearch documentsFor OpenSearch autodiscovery, set type="application/opensearchdescription+xml" and give the link a short title.
- 02Keep visible search accessibleA rel="search" link does not replace an accessible search form. Label the input, preserve keyboard access, and expose the form in the page interface.