: 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
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.
More posts by @Frith620
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.