XML - XML vs. HTML

XML is for data. HTML is for presentation.


A comparison

XML describes data. HTML describes presentation.
XML is designed to be created, read and updated by software. HTML is designed to be created, read and updated by people.
XML parsers are strict. HTML parsers are forgiving.
XML tags are case sensitive. HTML is not case sensitive.
XML end tags are required Some HTML elements have no end tag. E.g. <br>

Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath