What is the difference between these two CSS statements:
h1 em { color:#ddd; }
and
h1 > em { color:#ddd; }
As far as I can tell, they do the same thing (although, according to what I read in the W3C, in the first case em is considered a “descendant”, where, as in the second, it is considered a “child”, although I don’t know how this is actually different). Can someone explain how they differ and why you decided to use one syntax over another. I always used the first method, but from time to time I look at the second code style of other people.
Ken
source
share