Forum Moderators: not2easy

Message Too Old, No Replies

div named more than once

         

quozt

7:27 pm on Apr 21, 2004 (gmt 0)

10+ Year Member



why carnt i name a div more than once in xhtml 1.1 strict

D_Blackwell

7:40 pm on Apr 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can't name an id more than once. You can go crazy with classes.

Example:
<div id="unique-div">
Once per page.
</div>

<div class="not-unique-div">
As many times as you want per page.
</div>

bruhaha

7:43 pm on Apr 21, 2004 (gmt 0)

10+ Year Member



What exactly do you mean?

Are you referring to using the same name? (I assume you mean "class" or "id".) in several div's. Or are you trying to name the same div multiple times?

[edited by: bruhaha at 7:43 pm (utc) on April 21, 2004]

quozt

7:43 pm on Apr 21, 2004 (gmt 0)

10+ Year Member



thanks