Tuesday, 13 August 2013

Difference between HTML and XML

HTML
XML
Html is used to present and format the data
Xml is used to store and describe the data
It contains predefined tags
It contains user defined tags
It is not a case sensitive language
It is a case sensitive language
It is an error free language i.e it wil not display any errors occurred in the html document
It is not an error free language . I.eL it will display all the errors that has occurred in the XML document
Html is used to create web pages
Xml  can be used to transfer data between incompatible types
It can contain both proper and in proper nesting
Ex:
<html>
 <center>
   <h1>
     Hello
  </h1>
 </html>

It can contain only proper nesting
<html>
  <center>
   <h1>
      Hi
   </h1>
 </center>
<html>
It can be used to apply styles on the data
It can be used to structure the data (ie.L giving relationship between the tags, hirerarchy)


No comments:

Post a Comment