views:

85

answers:

4

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
+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
id="foo" id="foo" id="foo" id="foo" id="foo" id="foo" id="foo"
Drew
+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