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:
Point your browser to http://jigsaw.w3.org/css-validator/ (see Figure 3.12).
As with the HTML and XHTML validator, you can validate in several ways, including by URI (if the document is online), and by upload.
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.
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).
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. |