div id and div class

liunx

Guest
I've seen websites using different notations of positioning.
Some use for exemple:

#container with <div id="">

and others use:

div.container with <div class="">

What is the difference between them?'id's are unique. 'class'es are for more than one element to be styled the same way.Thank you :)I've started writing a FAQ page, so here's what I just wrote about this subject - class/id (<!-- m --><a class="postlink" href="http://bonrouge.com/br.php?page=faq#class-id">http://bonrouge.com/br.php?page=faq#class-id</a><!-- m -->).
 
Back
Top