# applies automatically to an element with the same CSS id
HTML
<div id="id1"> <-- automatically applied here...
CSS
.Dot1 {} DIV.Dot2 {}
DIV.Dot2 only applies to DIVs with the "Dot2" class, if any other element tries to use Dot2, it will not work
HTML
<div class="Dot1"> <-- only applies when you give class..
. not automatically applied automatically, you should use it in the "class" attribute for each element in which you want to apply them.
Akash Kava
source share