-
div
andspans
are grouping tags -
class
tags are mostly used for assigning styling to adiv
-
class
assigniments to an element are additive e.g. `class = 'class1 class2'`` -
the
class
definition in CSS file/block that's more bottom takes precedence over the one on top, e.g. :
.class2 {
color: red;