html (or .htm if you swear by old-fashioned 8.3 DOS naming techniques).
Although XHTML??™s stricter rules make it easier to work with than HTML, you need to be
aware of the differences in the basic document structure. In HTML, many designers are
used to starting out with something like the following code:
THE ESSENTIAL GUIDE TO CSS AND HTML WEB DESIGN
30
But in XHTML, a basic, blank document awaiting content may well look like this (although
there are variations):
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Although this is similar to the minimal HTML document, there are important differences.
The most obvious is found at the beginning of the document: a DOCTYPE declaration that
states what document type definition (DTD) you are following (and no, I??™m not shouting??”
DOCTYPE is spelled in all caps according to the W3C).
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
The DTD indicates to a web browser what markup you??™re using, thereby enabling the
browser to accurately display the document in question (or at least as accurately as it
can??”as shown in Chapter 9, browsers have various quirks, even when you??™re using 100%
validated markup).
Pages:
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89