[thelist] [DHTML] Elements with the same ID

David Dorward evolt at david.us-lot.org
Wed Mar 19 00:38:07 CST 2003


On Wed, Mar 19, 2003 at 12:37:18 -0500, Emma Jane Hogbin wrote:

> http://www.w3.org/TR/REC-CSS1#id-as-selector
> HTML [2] also introduces the 'ID' attribute which is guaranteed to have a
> unique value over the document. 
> 
> I'm sure there's an equivalent statement in the HTML and ECMA-262
> (Javascript) docs, I just don't know where it would be...

http://www.w3.org/TR/html4/struct/global.html#adef-id

id = name [CS]
    This attribute assigns a name to an element. This name must be
    unique in a document.

class = cdata-list [CS]
    This attribute assigns a class name or set of class names to an
    element. Any number of elements may be assigned the same class
    name or names. Multiple class names must be separated by white
    space characters.

-- 
David Dorward                                   http://david.us-lot.org/
"You cannot rewrite history, not one line."
                                      - The Doctor (Dr. Who: The Aztecs)


More information about the thelist mailing list