HTML and XML
Differences between HTML (Hyper Text Markup Language) and XML (eXtensible Markup Language).
HTML: 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 own static page. It is used for displaying the data not to transport the data. HTML is the 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 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.
XML: XML (eXtensible Markup Language) 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.
|1)||HTML is used to display data and focuses on how data looks.||XML is a software and hardware independent tool used to transport and store data. It focuses on what data is.|
|2)||HTML is a markup language itself.||XML provides a framework to define markup languages.|
|3)||HTML is not case sensitive.||XML is case sensitive.|
|4)||HTML is a presentation language.||XML is neither a presentation language nor a programming language.|
|5)||HTML has its own predefined tags.||You can define tags according to your need.|
|6)||In HTML, it is not necessary to use a closing tag.||XML makes it mandatory to use a closing tag.|
|7)||HTML is static because it is used to display data.||XML is dynamic because it is used to transport data.|
|8)||HTML does not preserve whitespaces.||XML preserve whitespaces.|