Two main differences between HTML and XML:
- HTML is used to display data and to focus on formatting of data, whereas XML is used to describe data and focus on what data is.
- HTML tags are predefined, whereas XML tags are not predefined. We create our own tags in XML as per the requirement.
Two main features of XML for which it’s used extensively now a days:
- XML is used to store data.
- XML is used to exchange data