When using the cite element, where do the page numbers of the cited pages go? Here it is suggested that the title and only the title should be used inside the cite element.

2 answers


The <cite> tag is, as your link explains, specifically for the title of a work. That does not include the page number. There is no specific tag for page number. In fact, there is no specific tag for many things that APA or MLA or Chicago Style call for: i.e. author, date, publisher, etc.

You can either make up your own tags as in XML, or you can use <span> tags and differentiate between them with classes:

<p><cite>Androids Dream</cite> <span class="pp">(p. 36)</span></p>

That way you can use CSS to manipulate how everything is displayed. At the end of the day all the <cite> tag does is italicize the enclosed text. How it displays can be controlled completely by you.

Answered almost 10 years ago by Abinadi Ayerdis
  • Oke, thnx. I'll see what I'll do. I hoped the html5, with its focus on semantics had something alike. Robert Voogdgeert almost 10 years ago

Yes, you would just put the title of the work in the cite tag and then depending on your use case just put the pages beside as normal.

<p><cite>Do Androids Dream of Electric Sheep?</cite> (p. 36)</p>
Answered almost 10 years ago by Thomas J Bradley
  • Isn't there a more elegant solution? In print publication page numbers are not considered to be part of, say, normal text of the paragraph. E.g. the author (year, pp) system as in APA. Robert Voogdgeert almost 10 years ago