Difference between XML and HTML?

Answer Posted / lak

1.HTML was designed to display data with focus on how data looks while XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is.

2.HTML is a markup language itself while XML provides a framework for defining markup languages.

3.HTML is a presentation language while XML is neither a programming language nor a presentation language.

4.HTML is case insensitive while XML is case sensitive.

5.HTML is used for designing a web-page to be rendered on the client side while XML is used basically to transport data between the application and the database.

6.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.

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

8.HTML does not preserve white space while XML does.

9.HTML is about displaying data,hence static but XML is about carrying information,hence dynamic.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the best tool one should learn i.e the tool having demand in the market for XSL?

493


State the features of xml?

494


What is xml xsd and xslt?

462


What happens if no xml namespace declaration is in scope?

497


What is the difference between CDATA and PCDATA?

512






How do I convert pdf to docx?

440


What is xml file in itr?

443


How do I remove rss feeds from outlook 365?

453


What is xml feed url?

434


Is xml a display language?

512


Why is my rss feed not working?

443


What is xslt explain with example?

530


Can I use the getattribute() and setattribute() methods of version 2.2 of the java servlet api to parse xml documents?

513


What is an xml file for video?

439


What is schemalocation in xml?

452