I have this HTML:
<h2 class="first second">Red</h2>
<h2 class="second">Blue</h2>
<h2 class="first">Green</h2>
How can I select h2
with first
and second
class?
thanks about answers
Update:
If I have another h2
tag like this:
<h2 class="first second third">Default</h2>
it will be red with h2.first.second
selector. Is there any way to select only element with first
and second
classes, not more.