HTML vs. XHTML
XHTML is an attempt to make an XML-compliant HTML language.
Principle Effects
XHTML is case sensitive:
when encountering HTML examples, make sure to write tags in lowercase.
All HTML tags must be closed. (See
Tags/Elements/Attributes
)
Empty tags/elements must be written with a space, a "closing" slash, and a > to close them, e.g. <br /> instead of <br>
Regular Elements must always have a closing tag to match the opening one.
Other XML Effects:
the need for an XML declaration and DTD
and
the use of xmlns attribute in the <html> tag.
Be sure to make HTML examples found out on the web XHTML-compliant
Back to Knowledge Dump