University of Cincinnati logo and link  
Contrasting XML and HTML
 
  UC ingot 
  • XML is case sensitive; HTML is not.
  • HTML is often forgiving if you forget to close a tag, such as </LI>.  If XML requires a close tag, it must be present for the file to be valid.
  • On the other hand, if a tag does not have a corresponding end tag in XML, you must close the tag itself with  /> instead of >.  
    • Example: either < begin tag > and </ end tag > 

    • or < one tag only />
  • In XML, quotation marks are required for properties.  They are optional in HTML.
  • In XML, all properties must have values.
 XML Document Structure