• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter Six. XHTML: Restructuring the Web > Declare Your Content Type

Declare Your Content Type

To be correctly interpreted by browsers and to pass markup validation tests, all XHTML documents must declare the type of character encoding that was used in their creation, be it Unicode, ISO-8859-1 (also known as Latin-1), or what have you.

If you're unfamiliar with character encoding, or if ISO-8859-1 isn't ringing any bells, never fear: We'll discuss that stuff later in this chapter. (See the later section, “Character Encoding: The Dull, The Duller, and the Truly Dull.”) For now, all you need to know is this: There are three ways to tell browsers what kind of character encoding you're using, but only one works reliably as of this writing, and it's not one the W3C especially recommends.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint