HTML vs XML1
XML In Comparison With HTML
HTML is an abbreviation for HyperTextMarkup Language.stands for eXtensible Markup LanguageHTML was designed to display data with focuson how data looks.While XML was designed to be a software andhardware independent tool used to transportand store data, with focus on what data is.HTML is a markup language itself. While XML provides a framework for definingmarkup languages.HTML is a presentation language. While XML is neither a programminglanguage nor a presentation language.HTML is case insensitive. While XML is case sensitive.HTML is used for designing a web-page to berendered on the client side.While XML is used basically to transport databetween the application and the database.HTML is about displaying data, hence static. But XML is about carrying information, hencedynamic.HTML does not preserve white space While XML does.
HTML has its own predefined tags While what makes XML flexible is that customtags can be defined and the tags are inventedby the author of the XML document.HTML is not strict for some specific tags, if the user does not use the closing tags.Like <p> and <br>.But XML makes it mandatory for the user theclose each tag that has been used.Like <p> this is a paragraph</p>HTML tags are case insensitive. XML tags are case sensitive. The tag <Letter>is different from the tag <letter>.<Message>This is incorrect</message><message>This is correct</message>In HTML, you might see improperly nestedelements:<b><i>This text is bold and italic</b></i>In XML, all elements must be properly nestedwithin each other:<b><i>This text is bold and italic</i></b>