Search This Blog

Friday, December 10, 2010

Difference between XML and HTML

1.HTML is a presentation language ( What ever elements you create by using HTML user can see thoas as GUI elements in the browser)
2.XML is used especially for storing Data and Transporting the Data
3.Apart from the above fundamental difference there are syntactical differences also.
4.Xml is a strongly typed language and HTML is loosely typed language
Ex: If you miss any ending tag in the XML your document will not be parsed and XML Parser gives you an Error. In case of HTML if you miss any ending tag then also your HTML code will be executed.
5.XML is case sensitive Ex: <Name>and <name>are not same
6.HTML is not case sensitive Ex: <Title>and<title> are same

No comments: