How the Pagination Attributes Work
The pagination attributes can be used for any set of content that spans multiple pages. Typical scenarios include multi-page articles, product listings, and forum discussions. Simply use the rel=next and rel=prev attributes to link all pages in a series together. For the following set of pages:
- www.site.com/products?page=1
- www.site.com/products?page=2
- www.site.com/products?page=3
The pagination attributes would be as follows:
Page 1:
<link rel=”next” href=”http://www.site.com/products?page=2″>
Page 2:
<link rel=”prev” href=”http://www.site.com/products?page=1″>
<link rel=”next” href=”http://www.site.com/products?page=3″>
Page 3:
<link rel=”prev” href=”http:// site.com/products?page=2″>
No comments:
Post a Comment
Do provide your constructive comment. I appreciate that.