Mobile app version of vmapp.org
Login or Join
Frith620

: Can rel="prev" and rel="next" attributes be placed on elements other than ? Is this the absolute ONLY correct way to indicate a paginated series of pages to search engines? <head> <link

@Frith620

Posted in: #Html #Hyperlink #Pagination #Seo

Is this the absolute ONLY correct way to indicate a paginated series of pages to search engines?

<head>
<link href="www.example.co.uk/news/?page=8" rel="prev">
<link href="www.example.co.uk/news/?page=10" rel="next">
</head>


Or can rel="prev" and rel="next" as attributes be added to other elements, for instance a in the body? Example:

<a href="www.example.co.uk/news/?page=8" rel="prev">Previous</a>
<a href="www.example.co.uk/news/?page=10" rel="next">Next</a>


I have read Google's documentation on implementing rel="prev/next", but it doesn't really specifically say that in the <head> on a <link> is the absolute only way to correctly implement, definitively.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Frith620

1 Comments

Sorted by latest first Latest Oldest Best

 

@Tiffany637

No, that is not the absolute only correct way to indicate a paginated series of pages to search engines.

According to the HTML specification for the anchor tag, the rel attribute is valid on anchor tags, so you could do it the way you have in your second example.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme