The original plan of the W3C was that HTML would be phased out for XHTML. While similar at first glance, HTML and XHTML differ in significant ways. XHTML, based on XML (as is SVG), is more strict, every tag must be matched by a closing tag or be self-closing, it is case sensitive, it requires the use of Name Spaces. The advantages of this strictness includes: simpler parsers, the ability to “round-trip” XHTML to and from different data formats using style sheets, the ability to add items from different specifications (e.g. SVG) or custom data structures, and most importantly, the greater likelihood that different browsers would render the content the same since non-compliant XHTML files won’t ...
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.