Differences Between XML and HTML

Answer Posted / pratibha

XML files are meant to hold data and data in an xml file is
well described. If you look at an xml file you can say what
it holds. For example if you find a number in an xml file
you can find out easily what that number identifies, whether
it is the number of products, or the price of a product etc.
In html it is not the case.

HTML is used to display the data in a formatted way. You can
apply styles and use different layouts to display the data
in an html file. The data that is displayed in an html file
could come from an xml file.

So to say in simple words, html displays the data and xml
holds the data!

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should I end my urls with a slash?

465


How do you use form tags?

467


How to create and access sessionstorage object in html?

472


How many HTML tags are should be used for the most simple of web pages?

519


What does id mean in html?

471






How do you keep list elements straight in an HTML file?

468


List out the new form attributes in html5?

465


Is html a framework?

473


What is onclick in html?

455


Is the center tag deprecated?

411


What is an xhtml element?

496


pls suggest me the material which follows for web testing. mentionthe sites also. thank u sai4sm

1487


What is microdata in html5?

459


What is local storage concept in HTML 5?

505


What are html5 tags?

448