Prev | Current Page 34 | Next

Charles Wyke-Smith

"Stylin' with CSS: A Designer's Guide 2nd Edition"

htmlhelp.com/reference/html40/entities).
And those are the rules of XHTML markup. They are relatively
simple, but you must follow them exactly if you want your
pages to validate (and you do).
An XHTML Template
There are certain tags that must be in your Web page for it to be
valid XHTML. As you learned from items 1, 2, and 3 above, you
need to tell the browser whether your page is pure XHTML or also
Quoted attribute values don??™t have
to be lowercase, but it??™s good practice
to write everything lowercase??”
then you can??™t go wrong. The only
time I don??™t follow this guideline
is with alt tags, where the attribute
value??”a text string??”might appear
on-screen.
Various tools take your old HTML
markup and convert it to XHTML.
Of these, HTML Tidy is considered
the best. The Infohound site (http://
infohound.net/tidy) has an online
version of HTML Tidy and links to
downloadable versions and documentation.
After the conversion is
complete, you always have some
?¬? nal hand cleanup to do, but HTML
Tidy and others can save you hours
of work.
XHTML: GIVING STRUCTURE TO CONTENT 17
contains deprecated tags, and what character encoding the page
uses. No matter what content your page displays, these tags need
to be present. You also need tags to indicate the head and body areas
of the page. Dreamweaver will generate a ???page template??? containing
all the required elements when you select New from the File
menu??”ready for you to add your page content.


Pages:
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46