W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2005

Are the semantic inline elements really useful? (Re: [whatwg] What exactly is contentEditable for?)

From: Jasper Bryant-Greene <jasper@bryant-greene.name>
Date: Wed, 31 Aug 2005 09:04:49 +1200
Message-ID: <4314C9F1.5070103@bryant-greene.name>
Henri Sivonen wrote:
> Could the user interface difficulties with this semantic inline elements 
> stem at least partly from problems with the semantic inline elements 
> themselves?
> 
> Consider <cite> for example. What's it really good for? Why should an 
> author bother to use <cite> instead of <i>? Once you have learned to 
> press command-i (or ctrl-i), why should you have to learn to do 
> something else when all you really want to get done is to italicize 
> titles of works?

<cite> is good for citing another work.

> I think making the case for <cite> fails the explaining to mother test. 
> Chances are that  there is something wrong with <cite> if I don't know 
> how to explain to my mother why she should use it instead of the 
> semantically empty italics. I cannot come up with any tangible 
> advantages. And I have been able to make the case for paragraphs and 
> headings.

I can come up with several. Although you may think it unlikely now, you 
may like to change the styling of your cited works at some point in the 
future.

You may also like to loop through <cite> elements in JavaScript and link 
them to an external database of works, or generate a reference list. 
These are just examples of the huge advantages of using meaningful 
semantic elements instead of presentational elements.

> [snip]
> 
> Aside: Now that I looked at the source of the literature list, I noticed 
> that some titles of works were marked up as <em>. my hypothesis is that 
> after an upgrade Dreamweaver has started using <em> when pressing 
> command-i. Sigh. See http://mpt.net.nz/archive/2004/05/02/b-and-i

http://jasper.bryant-greene.name/2005/08/31/b-and-i-are-bad-mkay/

> P.S. Using <cite> and <code> is relatively easy with OOo Writer/Web but 
> not as easy as pressing command-i. I have used <cite> myself when 
> writing using OOo Writer/Web, but I admit I should consider the 
> motivation rather cargo cultish.

The fact that your preferred editor does not offer a predefined keyboard 
shortcut for using proper semantic elements is not an excuse.

-- 
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
Received on Tuesday, 30 August 2005 14:04:49 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC