beginnersbook.com

  • Home
  • All Tutorials
    • Learn Servlet
    • Learn JSP
    • Learn JSTL
    • Learn C
    • Learn C++
    • Learn MongoDB
    • Learn XML
    • Learn Python
    • Learn Perl
    • Learn Kotlin
    • Learn jQuery
  • Core Java
  • OOPs
  • Collections
  • Java I/O
  • JSON
  • DBMS

HTML vs XML

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.

Leave a Reply Cancel reply

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

Recently Added..

  • JSON Tutorial
  • Java Regular Expressions Tutorial
  • Java Enum Tutorial
  • Java Annotations Tutorial

Copyright © 2012 – 2022 BeginnersBook . Privacy Policy . Sitemap