HTML & CSS
The title says it all
This article is worth perusing: The rise and fall of <cite>
That's a perfectly valid usage of <cite>. It doesn't really have any value beyond being a styling hook, but it is at least a semantically defined styling hook, which is better than a meaningless <i>, but if you want referenced book titles to be set in italics (or any other style you choose) then <cite> is the right way to go about it.
that article seems to contradict what deathshadow60 said here
i've always used CITE for titles of works and it seems html5 is clarifying the previous confusion to conform to this idea
With regards to a ship if you were referencing her, and her name and actions; Regalskeppet Vasa you would use the <cite> element.
The CITE marks up citation; a reference to a source you are quoting; either directly via BLOCKQUOTE or Q, or indirectly via paraphrasing.
From the linked article, an example that observes the HTML5 spec:
<p><cite>Aladdin</cite> is a great movie, even after 73 viewings. Aren’t kids great?</p>
So, as the spec states cite may be applied to "a work that is mentioned in passing", we're seemingly invited to apply it thus:
The first book of <cite>The Lord of the Rings</cite> trilogy, by J.R.R. Tolkein, was <cite>The Fellowship of the Ring</cite>, followed by <cite>The Two Towers</cite> and, finally, The <cite>Return of the King</cite>.
And if we feel the author's name is unfairly left out of the game we have the option of marking it up with sort-of-HTML5-ish Microformats.
An article on cite at the WHATWG Wiki (created by Tantek Çelik) in support of retaining it's use for speakers or individuals.
Jeremy Keith's 24 Ways article Incite A Riot also argues against the new restriction.
Benevolent Dicteditor of HTML5 Ian Hickson explains his decision.
As I've no plans to use HTML5 at present, I'll continue using cite for sources of quoted content, not for any old title of a work that appears in the markup.
Uhm... no... *** no... Whiskey tango foxtrot no?
Are you CITING the book as in you have a quote on the page, or are you just saying it's name... if you're just saying the books name, it should be an <i> tag! If you're quoting, paraphrasing, or otherwise listing it as a source of information, THEN it's CITE.
Unless of course you subscribe to that HTML 5 BS, in which case you can throw the very notion of semantics out the window and apply all sorts of nonsensical meanings all over the place...
Since basically HTML 5 says "people are too stupid, so to hell with it just use things any old way who cares about meaning".
This topic is now closed. New replies are no longer allowed.