HTML vs XML?
Plz define difference between HTML vs XML in simple language......
Hello Guys according to that topic i think that HTML is a markup language used to quickly show some way of outcome.The basic purpose of this is to make the static webs.On the other hand XML is a very tight markup language which is not usually used to make content.Its main use is as a tool for developing other markup languages that make the required content.Thanks a lot!!
There are many difference in between HTML and XML but I mention two points which can separate them. Main difference between HTML and XML is that HTML describes presentation and XML describes content. Second difference is that an HTML document rendered in a web browser is human readable. XML is aimed toward being both human and machine readable.
the answers above could work for a test. if you ask for yourself, html has fixed tag names (so that browser can understand them) and exceptions (like some tags that need not to be closed) that makes it invalid xml almost always. xml, on the other hand, can have any tag names you want, but must adhere to strict rules (or else xml parsers will refuse to parse it).
p.s. whoever thinks xml is human readable, burn in hell
HTML is written using HTML elements, which consist of tags, primarily and opening tag and a closing tag.The XML is well-formed and has strict set of rules. The most salient difference between HTML and XML is that HTML describes presentation and XML describes content. An HTML document rendered in a web browser is human readable. XML is aimed toward being both human and machine readable.
There is a lot of confusion on the responses to this question. Let me see if I can make it a little clearer.
XML and HTML were developed with different purposes in mind.
XML was developed to describe data and with a focus on what the data represents.
HTML was developed to display data with a focus on the way that the data looks.
HTML is about displaying data, XML is about describing the information the XML file holds.
XML is extensible, in other words, you can create your own tag names.
HTML has a defined set of tag names, allbeit they are changing quite frequently, they are still defined.
XML was developed to compliment the HTML language. It is important that you understand that XML is not or never was intended as a substitute for HTML. If XML follows that original path of the developed intention of the language, then in the future we will see, XML will be the main language of the data structure of the web page and HTML will be responsible for displaying the page.
I hope that makes it a little clearer.
Click Here to Expand Forum to Full Width