Difference between html and htm

broken image

XML does not support attribute minimization. Here is a paragraph.here is another paragraph.Īll attribute values including numeric values, must be quoted. But XML does not allow end tags to be omitted. In HTML, certain elements are permitted to omit the end tag. This difference is necessary because XHTML document is assumed to be an XML document and XML is case-sensitive. XHTML documents must use lower case for all HTML elements and attribute names. Essentially, this means all the elements must have closing tags and you must nest them properly.Įlements and Attributes Must be in Lower Case Well-formedness is a new concept introduced by XML.

broken image

Following is the comparison between XHTML and HTML. You already have seen XHTML syntax in previous chapter, so differences between XHTML and HTML are very obvious. Due to the fact that XHTML is an XML application, certain practices that were perfectly legal in SGML-based HTML 4 must be changed.