PDA

View Full Version : XML and HTML



ajaykr
08-02-2011, 07:52 AM
what is different between HTML and Xml ?



National Parks in India (http://www.indianwildlifetourism.com/indian-national-park/)

mesasa
08-02-2011, 09:14 AM
1.HTML is presentaton language where as XML is not either a programing language or a presentation language.It is used to transfer data between applications and databases.
2.HTML is not case-sensitive where as XML is case-sensitive.
3.In XML we can define our own tags as it is not possible in HTML.
4.In XML it is mandatory to close each and every tag where as in HTML it is not required.
5.XML describes the data where as HTML only defines the data.

dareckyoung
08-09-2011, 12:05 AM
Yes, both has some differences like HTML is predefined language and XML is user defined language. HTML is about displaying information, while XML is about describing information.

lentrepot
08-09-2011, 01:24 AM
HTML is about displaying information, while XML is about describing information.

moody761
08-09-2011, 04:01 PM
Practical difference is that You may leave HTML tags unclosed. it is ok at many places. But you cant leave any tag unclosed in XML it is strict in xml.