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

Chapter 31. XHTML > XHTML Document Declarations

31.3. XHTML Document Declarations

Every XHTML file must begin with declarations that tell the browser which versions of XML and XHTML are used in the document. The browser uses this information to display the document correctly. In Chapter 9 we saw how a DOCTYPE declaration can be added to the beginning of an HTML document. For XHTML, this element is required.

The following is a minimal XHTML document:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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