Quote:
Originally Posted by frabjous
HTML and XHTML are a species of XML file, but it's weird for it to have this declaration rather than the <!DOCTYPE ...> first.
|
1. HTML has nothing to do with XML.
XHTML on the other hand is HTML reformulated using XML syntax.
2. Having the XML declaration ("<?xml version='1.0' encoding='UTF-8'?>") at the start of an XHTML document (
before the DOCTYPE) is
mandatory. The fact that a lot of XHTML documents don't have it is besides the point.