---
title: "search · Link relation · zhead"
canonical_url: "https://zhead.dev/link/search"
last_updated: "2026-08-13T08:00:02.898Z"
meta:
  description: "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."
  "og:description": "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."
  "og:title": "search · Link relation · zhead"
---

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

- 01 Describe OpenSearch documents For OpenSearch autodiscovery, set type="application/opensearchdescription+xml" and give the link a short title.
- 02 Keep visible search accessible A rel="search" link does not replace an accessible search form. Label the input, preserve keyboard access, and expose the form in the page interface.

## Related documentation

- [HTML Living Standard: Links](https://html.spec.whatwg.org/multipage/links.html#link-type-search)
- [github.com: Opensearch 1 1 Draft 6.Md](https://github.com/dewitt/opensearch/blob/master/opensearch-1-1-draft-6.md#autodiscovery-in-htmlxhtml)