Separating Content from Presentation
Level of layout support
- No CSS, presentational markup only (Not recommended)
- Hard to maintain, deprecated
- Easily turns into tag-soup
- Partial CSS (acceptable compromise)
- One main layout table with no style, color, etc.
- All fonts, colors, margins, etc. controlled with CSS
- Works in Netscape 4
- Full CSS (recommended solution)
- Including CSS-P for layout
- Doesn’t work (consistently) in Netscape 4
- Acceptable degradation: conform to browser bugs or let them slide
CSS – Keep in mind….
- Keep as much control as possible with the user
- Some users will be using their own style sheets
- Make sure the page is readable with styles removed
- Don’t use CSS to replicate semantic mark-up
