Chapter 7: Formatting Web Pages with Style Sheets
I've mentioned Style Sheets numerous times in the previous chapters. In
particular, I have told you that certain
HTML elements and attributes are
deprecated or not supported in
XHTML, that you should use styles
instead. This chapter explains what I have been talking about.
Ideally from a programming perspective you should have several separate
'layers' that make up your Website. The 'content' which is the text and
images you display to the visitor, the 'markup' which is the
HTML used
to break that content into chunks of information that relate to each other,
and the 'presentation' which is the style and formatting of how the
content is displayed. Using Style Sheets to control how your Website
looks helps to separate content from presentation which is a good thing.
This way when you want to change the 'look and feel' of your Website,
all you need to change is the StyleSheets.
Chapter Contents
- Style Sheet Fundamentals
- Stylesheet Structure
- Working With Selectors
- Some Style Sheet Examples
- Summary