HTML and CSS Reference
In-Depth Information
Most of the major browsers work identically in this regard. Unfortu-
nately, there are two exceptions, one minor and one major. The minor
one is Firefox 2.0; Firefox users tend to upgrade regularly, so this ver-
sion is now used by a very small number of people and we won't worry
about it. The larger problem is Internet Explorer 8 and earlier, which is
still one of the most commonly used browsers on the web.
Supporting Internet Explorer
Internet Explorer won't apply CSS rules to any elements it doesn't rec-
ognize. Here's what the sample page looks like in IE7 .
But all is not lost. You can trick IE into recognizing elements with a bit
of JavaScript. This code will persuade IE that the <section> element
exists and should have styles applied to it:
document.createElement("section");
Search WWH ::




Custom Search