Early Access

Link

search

Learn how to use the search rel link tag to improve your site.

The "search" link relation type is used to indicate an interface (typically an HTML document) for searching the document or a related collection of resources. It essentially points search engines or search functionalities towards an HTML form designed for searching through the current site or application.

Code Examples

<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Site Search">
Correctly points to an OpenSearch description document, enabling search capabilities for browsers and other clients.
<link rel="search" href="#">
Incorrectly uses a placeholder URL, providing no actual search functionality or value.

Recommendations

  • Ensure Accessibility
    Make sure the search interface is accessible, providing adequate form labeling and keyboard navigation.
  • Optimize for Performance
    Keep the search interface lightweight to ensure fast loading times, which can indirectly benefit SEO.

Related Documentation