W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2005

Re: Draft suggestion: "normal" needed

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Fri, 15 Jul 2005 09:58:57 +0200
Message-ID: <42D76CC1.2080801@students.cs.uu.nl>
To: Mike-GBHXonline <mikecherim@gbhxonline.com>
Cc: www-html-editor@w3.org

Mike-GBHXonline schreef:
> In HTML I need to use this:
>  
> <p><i>Hmm, that's a <normal>great</normal> idea</i>, he thought to 
> himself.</p>
>  
> So I can get this result with or without styles.
>  
> /Hmm, that's a /great/ idea/, he thought to himself.
>  
> Without having to do this:
>  
> <p><i>Hmm, that's a</i> great <i>idea</i>, he thought to himself.</p>
> 
> I'm pretty emphatic that this is really needed. Your thoughts?

First of all: <i> - wrong. <em> - good. <i> is a presentational element, 
and it should not be used. The semantic element <em> ("Indicates 
emphasis") is appropriate instead. See also:
http://www.w3.org/TR/html4/struct/text.html#h-9.2.1

Now for your case, there are two possibilities:
<p><em>Hmm, that's a <em>great</em> idea</em>, he thought to himself.</p>

or:
<p><em>Hmm, that's a <strong>great</strong> idea</em>, he thought to 
himself.</p>

The nested <em>s is probably what you need, and if they are not by 
default styled as non-italics when nested inside another em, you can 
make it do so with the following CSS styling:

em { font-style: italic; }
em em { font-style: normal; }

On a final note, I strongly recommend you to use semantic (structural) 
elements only, in combination with CSS. It being the ‘correct’ choice 
aside, it also greatly improves the maintainability and flexibility of 
your website.


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
Received on Friday, 15 July 2005 07:59:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:55 GMT