Вы находитесь на странице: 1из 2

HTML XML

HTML is an abbreviation for HyperText Markup XML stands for eXtensible Markup Language
Language.
HTML was designed to display data with focus on XML was designed to be a software and
how data looks hardware independent tool used to transport
and store data, with focus on what data is.

HTML is a markup language itself XML provides a framework for defining markup
languages
HTML is a presentation language. XML is neither a programming language nor a
presentation language.

HTML is case insensitive XML is case sensitive


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

HTML XML

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.

HTML is not strict if the user does not use the closing tags. XML makes it mandatory for the user
the close each tag that has been used.

HTML does not preserve white space. XML preserves white space.

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

HTML XHTML

HTML is Hypertext Markup Language. XHTML is Extensible Hypertext Markup Language.


An application of SGML. An application of XML.

Can have empty/open tags e.g. <br>, <p>. All the unclosed tags must be closed e.g. <br/>,
<p></p>.

No hard rule on structures of the elementse.g. <p><b>The difference</p></b>. Structure of the


elements should be followed e.g. <p><b>The difference</b></p>.

Attributes have quotes as optional e.g. <font color=#ff0000>. Attributes have quotes mandatory
e.g. <font color=#ff0000?>.

Attributes values not significant e.g. <input type=checkbox checked>.Attributes values are
important e.g. <input type=checkbox checked = checked>.

Case insensitive:The tags and attributes can be of uppercase or lowercase as per the preference.
Case sensitive:The tags and attributes must be of lowercase.

All the content can be put under body element.All the content has to be put in blocks (p, under body
element.

HTML is not mandatory for one root element. XHTML documents must have one root element.

HTML DHTML

HTML is Hypertext Markup Language. DHTML is Dynamic Hypertext Markup Language.

HTML stands for only static pages. DHTML is Dynamic HTML means HTML+JavaScript.

It is referred as a static HTML and static in nature. It is referred as a dynamic HTML and dynamic
in nature.

A plain page without any styles and Scripts called as HTML. A page with HTML, CSS, DOM and
Scripts called as DHTML.

HTML sites will be slow upon client-side technologies. DHTML sites will be fast enough upon client-
side technologies.

Вам также может понравиться