Friday, 19 July 2013

What is the difference between XML and HTML?

-HTML is used for exchanging data, XML is not.
-HTML can have user defined tags, XML cannot

XML stands for EXtensible Markup Language

HTML stand for Hyper text  Markup Language

HTML is not case-sensitive where as XML is case-sensitive.

XML was designed to transport and store data, with focus on what data is
HTML was designed to display data, with focus on how data looks  

XML describes the data where as HTML only defines the data.

HTML has it own predefined tags while what makes XML flexible is that custom tags can be defined and the tags are invented by the author of the XML document.

HTML is not strict if the user does not use the closing tags 

but XML makes it mandatory for the user the close each tag that has been used.

by:- facebook.com/justeffects/