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

[whatwg] rel/rev for <form> ?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 09 Nov 2005 15:30:55 +1100
Message-ID: <43717B7F.9040501@lachy.id.au>
Mike Dierken wrote:
>> The use of 'class' for presentation is wrong anyway (and 
>> hopefully obsoleted in HTML 5). And yes, although it is named 
>> incorrectly, the attribute can take multiple, space-separated, values.
> Not. For. Presentation. ???
> Could you explain? I use that to map to CSS all the time. What am I doing
> wrong?

He meant that the class names used should not be used to describe the 
presentation, but rather describe the semantics.  It is, however, ok to 
use stylesheets to add styles based on the classes.

eg.  These are bad practice:
   <span class="bold red-border">
   <p class="blue-text">
   <div class="big bold">

These are better:
   <strong class="warning">
   <p class="summary">
   <h1 class="title"> (or simply <h1>)

Lachlan Hunt
Received on Tuesday, 8 November 2005 20:30:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:24 UTC