9

It would be really nice if all the next/prev links at the bottom of SO pages had rel=next / rel=prev on them, for use with browsers like Opera or the Firefox extensions that support this format for nice keyboard shortcuts :)

4
  • 5
    Who uses Opera anyway?
    – random
    Commented Dec 26, 2009 at 11:56
  • 3
    Some random guy from Australia. Commented Dec 26, 2009 at 12:55
  • 2
    I think the 3 people in the world using Opera can rough it.
    – Sam Becker
    Commented Dec 26, 2009 at 15:49
  • 2
    You shouldn't think that way. Maybe this feature is included in other browsers soon.
    – Midas
    Commented Dec 28, 2009 at 13:57

1 Answer 1

4

What is the correct syntax here? Where is this documented in the HTML 4.01 spec?

Ah, found it:

http://www.w3.org/TR/html401/struct/links.html#h-12.3

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
  <TITLE>Chapter 2</TITLE>
  <LINK rel="Index" href="../index.html">
  <LINK rel="Next"  href="Chapter3.html">
  <LINK rel="Prev"  href="Chapter1.html">
</HEAD>
...the rest of the document...

but wait -- only the oddball <link> tag? Does this syntax work for hyperlinks?

<a href="http://example.com" rel="next">

That's easiest, anything else and this is not worth doing.

edit: the op specifically said

all the next/prev links at the bottom of SO pages had rel=next / rel=prev on them

We already do rel="tag" on links that are tags, so I am going to do the same for the pagination next and previous links.

3
  • Nope, just in the LINK tag.
    – random
    Commented Dec 28, 2009 at 10:51
  • 1
    You can find a list of all link types here: w3.org/TR/html401/types.html#type-links Commented Dec 28, 2009 at 13:21
  • FTR it's very much allowed on <a> tags, and many tools support that. I think Opera itself may have a bug in that it only supports <link>, though
    – singpolyma
    Commented May 8, 2011 at 17:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .