0 Strict!??? message (Figure 1.2). CSS can be validated
in the same way at http://jigsaw.w3.org/css-validator.
FIGURE 1. 2 This nice message from
the W3C validator almost guarantees
that your page will display meaningfully
on any XHTML-capable device.
If you install the wonderful
Developer??™s Toolbar into Firefox, you
can easily validate pages on your
local machine without uploading
them to your web server. Download
it from http://chrispederick.com/
work/web-developer/
STYLIN??™ WITH CSS - CHAPTER 1 12
Does My Page Have To Validate?
The W3C validator (jigsaw.w3c.com) exists to enable you to ensure your pages are valid (only use elements and attributes
as de?¬? ned by the DOCTYPE??™s DTD) and well-formed (tags are structured correctly). It??™s de?¬? nitely good practice to
attempt to write pages that pass validation, and some would say that your pages must pass validation. What??™s undeniable
is that the validator can instantly ?¬? nd common errors in your code that might otherwise take you hours to ?¬? nd.
However, just because a page doesn??™t validate doesn??™t necessarily mean it won??™t display the way you intend in current
Web browsers. What future devices or other non-browser devices might do with such a page is not so certain.
My recommendation is to validate every page you create and take heed of the errors the validator displays.
Pages:
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37