Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML rel="prev"

A rel="prev" attribute value on a link specifies that the linked page is the previous page of the current page.

This can be used for articles, galleries, news, and other page in a series of pages.

Example

#

A rel="prev" on an <a> element.
This link opens the previous page in a list of pages.

Go back to the
Go back to the <a rel="prev" href="/html/rel/license">previous page</a>

Using rel="prev"

The rel attribute defines the relationship between the current page and the linked page.

The rel="prev" value specifies that the linked page is the previous page of the current page.

This value is for content that needs pagination for a list of articles, topics, blog entries, etc.


Syntax

<tagname rel="prev" />

Elements that accept rel="prev"

These elements accept the prev value on the rel attribute.

Elements Description
<a> Specifies an anchor link -- see example above
<area> Creates clickable areas inside an image map.
<form> Specifies an HTML form.
<link> Links a resource to the current page

Importance of rel="prev"

The rel attribute value can greatly affect search engine optimization.

This value helps search engine in identifying that the page belongs to a series and get relevant content.

Search engines put highest ranking on the first page recognized from the series.

This avoids duplicate content issue on different pages within the series.


Browser support

Here is when rel support started for each browser:

Chrome
6.0 Sep 2010
Firefox
4.0 Mar 2011
IE/Edge
12.0 Jul 2015
Opera
11.1 Mar 2011
Safari
5.0 Jun 2010

You may also like


Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides