+ 2
Can div get more than 1 id?
4 odpowiedzi
+ 1
A div can only have 1 id but can have multiple classes.
+ 3
"id"s are meant to be for the unique part of a page .
And you can only use an Id once on a page
+ 2
If you want to style the div container more than once, it's better to use the class attribute because id attribute can only be used once with an element and it must be unique. With class attribute you can apply two different style like this:
<div class=“one two”>...</div>
0
Ok thx!