use css style only on tags which are inside certain tags?

css, css-selectors

Solution

use

h1 strong { }
h2 strong { }
h3 strong { } 

Problem

I was browsing the css selectors but couldn't really get an idea or just didn't get it. If I have this HTML: ``` <h1><strong>text</strong></h1> <h2><strong>text</strong></h2> <h3><strong>text</strong></h3> ``` is there a way to apply different styles to each strong tag without giving each one a class. Something like: ``` strong[h1] {} strong[h2] {} ``` .. or so? Thanks :)

Original source