Could someone please clarify the meaning of the code snippet below?
<div class="cls1 cls2">abcd
<div class="cls2">
adfffff
</div>
</div>
.cls1 {
background-color: yellow;
}
/*sample1
.cls1.cls2 {
color: red;
}
*/
/*sample2*/
.cls1 .cls2 {
color: red;
}
The two classes in sample1 do not have an extra space, while in sample2 there is an extra space present.
Does anyone know where I can find the official documentation from Mozilla?