1//HTML Code
2<div class = 'firstClass secondClass'></div>
3
4//CSS Code
5.firstClass.secondClass {
6
7}
1To specify multiple classes, separate the class names with a space,
2e.g. <span class="classA classB">.
3This allows you to combine several CSS classes for one HTML element.
1.objectOne, .objectTwo { /* We will now both be changed */
2 margin: 0 auto;
3}
1<div class="a-class another-class"></div>