"In an ideal world we'd write our (X)HTML and CSS once and it would work perfectly for all browsers. In the real world different browsers and platforms render our creations slightly or drastically different, depending on how adventurous we get with our (X)HTML and CSS. To combat these browser peculiarities developers have adopted a number of coping strategies, including:
@import to hide more advanced styles from older browsers (Netscape 4.x etc.)
CSS hacks (voice-family, escapes, "Tantek hacks," and other techniques)
Conditional CSS
While the
If you've had difficulties getting your web page to display correctly in more than one browser, you're not alone. The unlikely culprit might just be in the Doctype tag that you may or may not have added to your document.
QuirksMode goes into significant depth on the issue: "When Netscape 4 and Explorer 4 implemented CSS, their support did not match the W3C standard (or, indeed, each other). Netscape 4 had horribly broken support. Explorer 4 came far closer to the standard, but didn't implement it with complete correctness either. Although Explorer
Work is currently going on to extend web style sheets to include facilities for the visually impaired as part of the HTML work within the World Wide Web Consortium (W3C) based at the Massachusetts Institute of Technology in the USA and INRIA.
HTML was originally intended as a structural markup language (defining, for instance what the top-level heading is for a document, but not how it should be displayed), but later additions by, amongst others Netscape and Microsoft, added new markup to HTML that was only there to influence the presentation, for
DEFINITION - A cascading style sheet (CSS) is a Web page derived from multiple sources with a defined order of precedence where the definitions of any style element conflict. The Cascading Style Sheet, level 1 (CSS1) recommendation from the World Wide Web Consortium (W3C), which is implemented in the latest versions of the Netscape and Microsoft Web browsers, specifies the possible style sheets or statements that may determine how a given element is presented in a Web page.
CSS gives more control over the appearance of a Web page to the page
There are few things as sweet as a promise kept, and nothing so bitter as one that isn't. In 1996, style sheets promised us incredible opportunities for control over Web document presentation. But that promise has been only partially fulfilled, making our relationship with style sheets bittersweet.
Style sheets are advantageous in that they let you manage, update, and change large sites easily, and elegantly control visual effects. Documents become more streamlined and manageable when designers effectively separate presentation from Web