Open In App
Related Articles


Like Article
Save Article
Report issue

HTML (Hyper Text Markup Language) is used to create web pages and web applications. It is a markup language. By HTML we can create our static page. It is used for displaying the data not to transport the data.

HTML is a combination of Hypertext and Markup language. Hypertext defines the link between the web pages. A markup language is used to define the text document within the tag which defines the structure of web pages. This language is used to annotate (make notes for the computer) text so that a machine can understand it and manipulate text accordingly. 



<!DOCTYPE html>
    <h1 style="color: green;">
        A Computer Science portal for geeks





XML (Extensible Markup Language) is a versatile markup language designed for carrying and storing data. It allows users to define their custom tags, making it highly flexible. XML is often used for data interchange between different systems, enabling the sharing of structured information.

XML is also used to create web pages and web applications. It is dynamic because it is used to transport the data not for displaying the data. The design goals of XML focus on simplicity, generality, and usability across the Internet. It is a textual data format with strong support via Unicode for different human languages. Although the design of XML focuses on documents, the language is widely used for the representation of arbitrary data structures such as those used in web services.



<?xml version = "1.0"?>
    <address category = "college">




Difference between HTML and XML

It was written in 1993.It was released in 1996.
HTML stands for Hyper Text Markup Language.XML stands for Extensible Markup Language.
HTML is static in nature.XML is dynamic in nature.
It was developed by WHATWG.It was developed by Worldwide Web Consortium.
It is termed as a presentation language.It is neither termed as a presentation nor a programming language.
HTML is a markup language.XML provides a framework to define markup languages.
HTML can ignore small errors.XML does not allow errors.
It has an extension of .html and .htmIt has an extension of .xml
HTML is not Case sensitive.XML is Case sensitive.
HTML tags are predefined tags.XML tags are user-defined tags.
There are limited number of tags in HTML.XML tags are extensible.
HTML does not preserve white spaces.White space can be preserved in XML.
HTML tags are used for displaying the data.XML tags are used for describing the data not for displaying.
In HTML, closing tags are not necessary.In XML, closing tags are necessary.
HTML is used to display the data.XML is used to store data.
HTML does not carry data it just displays it.XML carries the data to and from the database.
HTML offers native object support.IN XML, the objects are expressed by conventions using attributes.
HTML document size is relatively small.XML document size is relatively large as the approach of formatting and the codes both are lengthy.
An additional application is not required for parsing of JavaScript code into the HTML document.DOM(Document Object Model) is required for parsing JavaScript codes and mapping of text.

Some of the tools used for HTML are:

  • Visual Studio Code
  • Atom
  • Notepad++
  • Sublime Text

and many more.

Some of the tools used for XML are:

  • Oxygen XML
  • XML Notepad
  • Liquid Studio

and many more.

Last Updated : 12 Jan, 2024
Like Article
Save Article
Share your thoughts in the comments
Similar Reads