Difference between XML and HTML?

Answer Posted / gaurav makhijani

1)XML stands for Extensible Markup Language,HTML - short for
Hypertext Markup Language

2)In XML, Data is stored in separate XML files but in HTML,
it is stored inside the files.

3)HTML is predefined Language. XML is user defined language.

4)To display HTML, we used CSS.In XML, we used XSL.

5) XML was designed to describe data and to focus on what
data is. HTML was designed to display data and to focus on
how data looks.

6) HTML is about displaying information, XML is about
describing information

7)HTML is static and XML is dynamic.


8).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.

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

10)In XML we can define our own tags as it is not possible
in HTML.

11)In XML it is mandatory to close each and every tag where
as in HTML it is not required.

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

Is This Answer Correct ?    101 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why would you use xml?

619


Do you feel that you are a good XSLT programmer?

673


How do I map data from excel to xml?

590


State the benefits of xml?

679


How do I subscribe to an rss feed on my iphone?

627


What is targetnamespace in xsd file?

613


Can xml files be viewed in browsers?

670


How we compare xslt and xpath? : xslt

628


How do I convert an xml file to excel?

701


What is wsdl used for?

625


Is xsd xml?

605


what is Identity template in XSL, why do you use it?

692


How xml is useful in defining data for web applications?

657


What is schemalocation in xml?

611


What is a pdf xml file?

635