Re: Proposal: Chained Classnames

At 03:59 PM 5/18/2007 +0200, Dão Gottwald wrote:

>Murray Maloney schrieb:
>>At 02:28 PM 5/18/2007 +0200, Dão Gottwald wrote:
>>>Murray Maloney schrieb:
>>>>However, <i class="shipname">Titanic</i> could get you both a default style
>>>>and an understandable semantic.
>>>
>>>But that default style wouldn't be applied due to the class name.
>>How do you figure that?
>
>Like you did, I guess, when you wrote that '<span 
>class="shipname">Titanic</span> does not get you a /default/ style other 
>than that for <span>'.

The point was that <i> has a default typeface, whereas <span> has no 
default style.
So, <i class="shipname"> is going to yield an italic typeface in most GUI UAs
and can be tracked to a useful semantic. Whereas, <span class="shipname"> could
also yield a useful semantic, but not a useful default style.

Providing a class name does not nullify the default style for an element.

Regards,

Murray

Received on Friday, 18 May 2007 14:59:28 UTC