Basic Differences between HTML and XML

Use These Suggestions To Make An Impact With Online Marketing

These days, more and more business are aiming for success with online sales an…

Today I am sharing some very basic differences between HyperText Markup Language (HTML) and eXtensible Markup Language (XML).



Differences between HTML and XML:

HTML (HyperText Markup Language)
XML (eXtensible Markup Language)

HTML has some predefined tags with some predefined meaning.


XML has no tags.

You can use the tags as it is in HTML. You can’t write new tags.


Always you have to write new tags according to your requirement.

HTML document is used to present the data to user in the required format.


XML document is used to store the data (XML document is container for the data).


HTML document may not be well formed document.


XML document must be a well-formed document.

In HTML there is no data type.


In XML some data types are defined.
EX:
<html>
<title>Example</title>
<head>Head Part</head>
<body>
This is HTML
</body>
</html>

EX:
<?xml version="1.0"?>
<student>
    <name>Raj</name>
    <class>12</class>
    <roll-no>515</roll-no>
</student>


You can get more on Advance Java and android applications at JLC.

Applications
September 27, 2012
1

Comments

  1. This information is very useful for the starting stage of development who are the freshers.HTML is the basic programming language for website development.
    Website Development Company | Web Designing Company Bangalore

    ReplyDelete

Post a Comment

Search

Recent Comments

Total Pageviews