HTML Vs XML
HTML Vs XML
HTML’s full form is Hypertext Markup Language, while XML is an Extensible Markup Language. The purpose of
HTML is to display data and focus on how the data looks. Therefore, HTML describes a web page’s structure and displays
information, whereas XML structures, stores, and transfers information and describes what the data is.
HTML is a computer language used to create websites that can be viewed by anyone with internet access. The tags are
the words between the <angle brackets> and separate standard text from HTML code. These are displayed on webpages in
the form of images, tables, diagrams, and so on.
Extensible Markup Language (XML) is a programming language created by the World Wide Web Consortium (W3C).
XML facilitates encoding documents, defined by a set of rules, in a format that can be read by both humans and machines.
• ATOM and RSS describe how reader apps handle web feeds.
• Microsoft.NET uses XML for its configuration files.
• XML is the basis for document structure in Microsoft Office 2007 and later versions. This is what X stands for
in .DOCX word document format and is also used in PowerPoint (.PPTX files) and (.XLSX) Excel files.
XML is in a textual data format and focuses on generality, simplicity, and usability across the internet. It is used for
representing arbitrary data structures in web services.
Closing tags are not necessarily needed. Closing tags are used mandatorily.
Showcases the design of a web page in the Enables transportation of data from database and related
way it is displayed on client-side. applications.
Conclusion:
HTML and XML are related to each other, used to store or carry data, while HTML is used to format and display the
same data, while XML is a standard language that defines other languages.
Source:
https://www.upgrad.com/blog/html-vs-xml/
https://www.guru99.com/xml-vs-html-difference.html