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

Re: XHTML copy and pasting *with* format (and potentially, meaning)

From: David Woolley <david@djwhome.demon.co.uk>
Date: Tue, 27 Sep 2005 07:39:30 +0100 (BST)
Message-Id: <200509270639.j8R6dUj03036@djwhome.demon.co.uk>
To: www-html@w3.org

> Excellent answer, I couldn't have hoped for more.

> With the *current* use of the class attribute (basically, 95% of the cases,
> for styling, and nothing else), your answer was simply perfect.

I don't think you did understand.  class should almost never be used for
styling; it should be used for meaning.  The style sheet should then
associate styling with that meaning.

The problem is that most commercial (and vanity page) authors don't care
about meaning, and so will write:

<span class="redbold"> ...</span>  

(very few would use class="red bold", because they don't know they can)

rather than 

<strong class="dangerous">...</strong>

For the vast majority of authors, a meaning attribute will never be used,
and those who use it would have probably used class properly.
Received on Tuesday, 27 September 2005 07:14:47 GMT

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