Thursday, January 9, 2020

DIFFERENCE BETWEEN HTML AND XML ?

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 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 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 its own predefined tags while XML is quiet flexible, where custom tags can be defined which are invented by the author of the XML document.
7)In, HTML is no binding to use closing tags but XML makes it mandatory for the user to close each tag that has been used.
8)HTML is does not preserve white space while XML does.
9) HTML is about displaying data, hence it is static but XML is about carrying information, hence it is dynamic.
Thus, it can be said that HTML and XML are not competitors rather complement each other and clearly serve different purposes altogether.

No comments:

Post a Comment