View Single Post
  #2 (permalink)  
Old 01-17-2005, 03:26 PM
paulhiles's Avatar
paulhiles paulhiles is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,621
paulhiles RepRank 0
Default XHTML Doctype and the XML declaration

The doctype is usually the first line of any XHTML document, it's also an essential part of the document!
Some documents may contain an additional XML declaration (see below)

Quote:
Originally Posted by the W3C XHTML Spec
An XML declaration is not required in all XML documents; however XHTML document authors are strongly encouraged to use XML declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16 and no encoding was determined by a higher-level protocol.
You could remove the XML declaration from the top of the page's code, but don't try inserting it elsewhere! :o)

Paul
Reply With Quote