[thelist] DIV IDs

Paul Bennett paul at teltest.com
Sun Dec 29 16:24:01 CST 2002


ok please flame me if my understanding is incorrect ;)
Class can be applied to many objects (tags)
ID can only be applied to ONE object per page, will not validate (or may
display incorrectly) if this is violated

>Do IDs in DIVs absolutely have to be unique throughout a page?
>
>I have a page with many (4) #box objects which all use the same formatting
>structure but differ in colour.
>
>I've used the ID to mark up the basic form of
>the boxes and the class to vary the colour of each on the page.
>
You could reverse this and be correct, AFAIK

>Am I using IDs and classes incorrectly here??
>
>

--
Paul Bennett
Internet Developer
Teltest Electronic Design
--------------------------
Phone : 64 4 237 0767
Web : http://www.teltest.com
Wap : http://wap.teltest.com
Email : paul at teltest.com
--------------------------






More information about the thelist mailing list