BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

HTML vs XML

Last Updated: October 24, 2018 by Chaitanya Singh | Filed Under: XML Tutorial

In the previous tutorial of XML introduction, we discussed the differences between HTML and XML in brief. In this guide, we will discuss them in detail.

SNo. HTML(Hyper Text Markup Language) XML(eXtensible Markup Language)
1 HTML focuses on how the data looks XML focuses on the data rather than how it looks
2 HTML is not a case sensitive language XML is case sensitive language
3 HTML is mainly concerned with the presentation of data XML is mainly used for storing and transporting the data
4 HTML is static XML is dynamic
5 In HTML the closing tag in optional In XML the closing tag is mandatory
6 HTML uses predefined tags such as <b>, <br>, <img> etc. XML uses the user-defined tags that we create while writing the XML document.
7 HTML does not preserve white space. XML preserves white space.

Top Related Articles:

  1. XML Example
  2. Introduction to XML
  3. XML Attributes
  4. XML Comments
  5. Advantages and Disadvantages of XML

About the Author

I have 15 years of experience in the IT industry, working with renowned multinational corporations. Additionally, I have dedicated over a decade to teaching, allowing me to refine my skills in delivering information in a simple and easily understandable manner.

– Chaitanya

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap