XML Vs HTML




XML Vs HTML


XML HTML
XML stands for Extensible Markup Language HTML stands for Hypertext Markup Language
Allow user to create own tags and attributes. Html tags and attributes are pre-determined
and rigid.
Content and format are separate and
formatting will be made by external stylesheets
Content and formatting can be placed together. Example: <p><font=”Arial”>text</font>
In XML Designs represent the
logical structure of a document.
HTML Design represent the
presentation structure of a document.
More effective for machine- machine interaction. More effective for machine - human interaction.
XML provide a framework to define markup languages HTML is a markup language
Syntax is strictly defined which means
mandatory to close all the tags.
Loosely Defined syntax compared to XML.
In Html, not necessary to close all the tag.
XML is dynamic because it is used for both display
and transport the data.
HTML is static because it is used to
only display the data/content
Preserve White Spaces Does not preserve Whitespaces
XML is case sensitive HTML is case insensitive

Read Also

Basics of HTML

HTML vs XML Code Example

 HTML vs XML

Learn XML - XML tutorial - HTML vs XML - XML examples - XML programs



Related Searches to HTML Vs XML