Chapter 9: Minimizing Markup

 < Day Day Up > 



Overview

We've been talking about how building pages with structure can help minimize your markup by separating that structure from the design details. Instead of using tables and images to create borders and customized layouts, we can turn to valid XHTML and CSS for the finishing touch.

One potentially bad habit that is easy to fall into when constructing sites with web standards (and especially those that rely heavily on CSS) is adding extraneous tags and class attributes—when they're not necessary at all.

By taking advantage of descendant selectors in our CSS, we can eliminate the need for unnecessary <div>s, <span>s, and classes. Minimizing your markup means faster, more easily maintained pages—and in this chapter, we'll discover a few simple ways to do it.



 < Day Day Up > 



Web Standards Solutions. The Markup and Style Handbook
Web Standards Solutions: The Markup and Style Handbook (Pioneering Series)
ISBN: 1590593812
EAN: 2147483647
Year: 2003
Pages: 119
Authors: Dan Cederholm

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net