View Single Post
Old 11-13-2012, 07:35 PM   PM User | #16
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,556
Thanks: 62
Thanked 4,055 Times in 4,024 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
HTML is not XML.

You *can* have XHTML that is XML-compatible, though.

But there are many rules in XML that are not necessarily followed in HTML.

If you use XHTML in strict mode and validate it (say with the w3c validator) *then* you can probably treat it as XML for the purposes of this usage.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote