Content deleted Content added
SiobhanHansa (talk | contribs) m Revert addition of spamlink |
m →Star HTML hack: Closing the comment |
||
Line 15:
The <code>html</code> element is the root element of the W3C standard [[Document Object Model|DOM]], but Internet explorer versions 5.5 and 6 include a mysterious parent element. Fully-compliant browsers will ignore the <code>* html</code> selector, while IE 5.5 and 6 will process it normally. This enables rules to be specified for these versions of Internet Explorer which will be ignored by all other browsers. For Example:
<pre>
* html p {font-size: 5em; /* Specifies text size in Internet Explorer 5.5 and 6, but not in any other browsers */ }
</pre>
===== html>body hack =====
Internet Explorer does not support the "child selector" (<code>></code>), allowing rules to be specified for all browsers except Internet Explorer. For example:
|