Link Relationships
HTML rel="prev"
Identifies the preceding document in an ordered series. It complements next and does not alter browser history. Pair with next for a logical document series, such as numbered guide pages. This is not a command to go back to the last page in the user’s session. Use a visible descriptive link to the actual preceding page.
Formal Syntax & Structure
html syntaxhtml
<a rel="prev" href="/guide/page-1">Previous page</a>Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| rel | space-separated relationship tokens | Include prev in the space-separated relationship tokens. Use on a, area or link. |
| href | URL or fragment | Identifies the linked destination or resource. |
Working Example
Example Snippethtml
<a rel="prev" href="/guide/page-1">Previous page</a>