Next / Previous / Contents / TCC Help System / NM Tech homepage

5. Separating content and presentation with CSS

HTML as originally proposed had a lot of features that allowed page designers to specify the appearance of the page in detail. However, XHTML tries to separate presentation—the fine details such as fonts, colors, and spacing—from structure and content.

The preferred way to specify presentation is to use CSS (Cascading Stylesheet Language) to write a stylesheet that describes presentation details, and place it in a separate file from the XHTML.

The good news is that you don't have to use CSS. If browsers render your page in a reasonable way, there's no reason to use CSS.