Part II: Design

Validating Your CSS

Just as you validated an HTML document in Chapter 1, “Understanding Structured Markup,” here you will validate your CSS document using the W3C’s validator. To do so, follow these steps:

  1. Point your browser to http://jigsaw.w3.org/css-validator/ (see Figure 3.12).

    click to expand
    Figure 3.12: The W3C’s CCS validator

  2. As with the HTML and XHTML validator, you can validate in several ways, including by URI (if the document is online), and by upload.

  3. Click the option you’d like. If you choose by URI, you’ll be asked for the location of the document. If you choose to upload it, you’ll be asked to browse for the document or type its path directly into the available text box.

  4. Click the Submit This CSS File for Validation button.

The W3C’s CSS validator will validate your CSS. As with HTML and XHTML, warnings can be generated. As long as no errors are generated, the CSS document is valid (see Figure 3.13).

click to expand
Figure 3.13: The style sheet passes validation! The full style sheet will be displayed as you scroll down the page.

Note 

 If you do encounter an error, use the information provided to correct your document. A warning can provide helpful information to you, but warnings do not influence the validity of the document.



Cascading Style Sheets(c) The Designer's Edge
ASP.NET 2.0 Illustrated
ISBN: 0321418344
EAN: 2147483647
Year: 2005
Pages: 86

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