1.

Mention any two main differences between HTML and XML. Also mention any two main features of XML for which it’s used extensively now a days.

Answer»

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 nowadays:

  • XML is used to store data.
  • XML is used to exchange data.


Discussion

No Comment Found

Related InterviewSolutions