-
divandspansare grouping tags -
classtags are mostly used for assigning styling to adiv -
classassigniments to an element are additive e.g. `class = 'class1 class2'`` -
the
classdefinition in CSS file/block that's more bottom takes precedence over the one on top, e.g. :
.class2 {
color: red;
}
/* this takes precedence */
.class1 {
color: green;
}
Example: https://jsfiddle.net/vfyo05k4/