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

NameTypeDescription
relspace-separated relationship tokensInclude prev in the space-separated relationship tokens. Use on a, area or link.
hrefURL or fragmentIdentifies the linked destination or resource.

Working Example

Example Snippethtml
<a rel="prev" href="/guide/page-1">Previous page</a>
HTML Reference