Share this Page URL

Chapter 14. A Beginner's Guide to Style ... > What About Browser Support? - Pg. 159

A Beginner's Guide to Style Sheets 159 The term style sheet harkens back to the days of yore when word processors enabled you to store your styles in a separate document known as a style sheet. This is equivalent to what we usually call a template, today. As you'll see later on, it's possible to define all your HTML styles in a separate page and then tell the browser where that page is located, so it's a bit like those old style sheets (although style file might have been a better--and more fun--name). More generally, an HTML style sheet is any collection of styles, whether it exists in a separate page or within the current page (as in the earlier example with the <H1> tag). What About Browser Support? Style sheets have come a long way in the past couple of years. Once an obscure section of the HTML 4.0 standard, style sheets are now a much-traveled part of the Web design landscape. The reason style sheets have come into their own is simple: Most modern browsers support them. Technically, style sheet support is built into Internet Explorer versions 3.0 and later, and Netscape Navigator versions 4.0 and later. However, that accounts for most browser traffic today (about 96 percent, as I write this). Therefore, it's perfectly safe to go ahead and start learning and using style sheets right away. Those few style sheet-ignorant browsers that visit your pages ignore the extra tags (and you can use HTML comment tags to block out other style-related text), so no harm comes to your pages. Page Pitfalls