I know there can be only one unique ID attribute per document. To be sure, I need real doc link where this is written.
+7
A:
From http://www.w3.org/TR/html40/struct/global.html#adef-id:
This attribute assigns a name to an element. This name must be unique in a document.
Ionuț G. Stan
2009-10-08 14:36:50
+1
A:
You can repeat a unique ID exactly seven times before the W3 will knock on your door. It's kind of like the bloody mary thing in the bathroom mirror except way geekier.
somacore
2009-10-08 14:38:50
id="foo" id="foo" id="foo" id="foo" id="foo" id="foo" id="foo"
Drew
2009-10-08 14:40:55
+1
A:
You can use the id
attribute as many times in an XHTML document as you like, but you shouldn't be using the same id
multiple times - that's what classes are for.
James
2009-10-08 14:40:43