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

Can a div have 2 classes?

453


What is manifest file in html5?

466


Why doctype is important in html?

449


Is html is a scripting language?

426


How do you add a keyword in word?

400






List the media types and formats supported by html ?

423


What is d full meaning of url?

443


Is html case sensitive?

460


If I do not put will HTML 5 work?

472


Is it possible to list elements straight in an html file?

444


What is a tag for a website?

433


What do you mean by tables?

449


If I do not put will HTML 5 work?

516


What is the hierarchy that is being followed when it comes to style sheets?

586


What is a frameset?

465