.class1 .class2 h2{ color: red; }
<h2>
.class2
.class1
Pro tip: use ```triple backticks around text``` to write in code fences