Today I am sharing some very basic differences between HyperText Markup Language (HTML) and eXtensible Markup Language (XML).
You can get more on Advance Java and android applications at JLC.
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.
Related Posts
Applications
September 27, 2012
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.
ReplyDeleteWebsite Development Company | Web Designing Company Bangalore