Differences between XML and HTML

Since XML and HTML are derived from SGML they are similar, but have the following differences:
1. XML is case-sensitive
2. XML must have quotes (single or double) around attributes
3. Most interpreters of HTML are very forgiving about missing end tags - XML parses are not.
4. Comments start with <-- and end with -->. Inside a comment, "--" may not appear. Although this is fine in html, it confuses xml parsers.

1 comment:

  1. Ha, that’s actually a really good suggestion. Thanks so much for this!

    Flower Girl Dresses|Empire Wedding Dresses|Column Wedding Dresses