W3C home > Mailing lists > Public > www-html@w3.org > June 2008

Re: name="" deprecated in XHTML

From: Tina Holmboe <tina@greytower.net>
Date: Wed, 25 Jun 2008 16:20:02 +0200
To: Sebastian Mendel <lists@sebastianmendel.de>
Cc: w3-html <www-html@w3.org>
Message-ID: <20080625142002.GM2764@greytower.net>

On Wed, Jun 25, 2008 at 03:58:41PM +0200, Sebastian Mendel wrote:

> Franklin Tse schrieb:
>>> i used to use name="" to group equal elements, or in other words, 
>>> same element placed more than once on a page
>>> e.g. a footnote <sup name="footnote_1">1</sup>
>>> (and than i used the name to attach a mouse hover event to it which  
>>> displayed the content from the bottom in a bubble hint)
>>> but this is now deprecated
>>> does this makes sense?
>> The class attribute appears to be more suitable for grouping.
> no, not really, class groups element of the same 'class'

  It's actually the other way around - class assign elements to certain
  classes as the XHTML 2 draft put it:

    "This attribute assigns one or more class names to an
     element; the element may be said to belong to these classes."

  If the element in question is unique for the document, then ID would be
  more appropriate, but if you wish to assign elements to a certain
  'group' then 'class' is appropriate.

 -  Tina Holmboe           siteSifter                  Greytower Technologies
                 http://www.sitesifter.co.uk          http://www.greytower.net
            Website Quality and Accessibility Testing
Received on Wednesday, 25 June 2008 14:20:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:20 UTC