Forum Moderators: not2easy
it is a child selector [w3.org]. Of course <body> is always the child element of the <html> element so it should mean it's unnecessary to state that, however..
MSIE never understood child selectors until IE7 so it was used primarily in hiding hacks from IE, that is if you wanted to target an element for everything but IE you would preface your rules with that.. IE ignored them because it didn't understand - however now that IE7 reads them.. you are right there is (possibly) no need whatsoever for it.
BUT! if you are seeing them in your code they were/are likely there for a reason so test in IE6 as well as 7
-Suzy
body' will include all browsers.
html>bodyis also more specific [webmasterworld.com], but I don't think that really matters in this instance?
<edit>*snap*!</edit>
however there are many undocumented ways to apply filters - loopholes that didn't quite reach the "main sites" so don't rely on them for all.
However the fact that you are asking "Why Use.." means you don't need links like these IMHO ;) - hacks and filters are old news, if you see something weird (like
* html or html>body or _rule) in your stylesheet (btw, all of these "filters" are still predominant in freely downloadable templates code) then you already know it's out of the ordinary and in that case I personally would move as quickly as possible to lose the rule and go the Conditional Comments [webmasterworld.com] route in order to take care of IE's CSS foibles instead. good luck
-Suzy