8.13.2012

Difference between HTML and XML

1.Difference between HTML and XML
S.No
HTML
XML
1
Abbreviation:

HTML stands for HyperText Markup Language
Abbreviation:

XML stands for eXtensible Markup Language
2
Purpose:

To display information and to focus on how data looks.
Purpose:

To describe information and and to focus on what data is.
3
Tags:

In HTML, tags are predefined
Tags:

In XML,tags are user defined
4
Rule on Attribute Values:

Quotes are not required for the values of attributes
Rule on Attribute Values:

Quotes required around attribute values
5
Rule on Empty Tags:

Slash not required
Rule on Empty Tags:

Slash required in empty tags
6
Case sensitiveness:

HTML is case insensitive
Case sensitiveness:

XML is case sensitive.
7
Rule on End Tags:

End tags are not always required.
Rule on End Tags:

End tags required for well formed documents. In a well formed document, elements can be defined as single tag or a pair of tags
8
Reusability and Extensibility:

Html document does not supports reusability and extensibility
Reusability and Extensibility:

Xml documents are reusable and extensible
9
Data Interchange:

Not possible
Data Interchange:

Possible
10
Content Type:

Static.ie.,Content is not changed every time when the page is reloaded
Content Type:

Dynamic.ie.,Content is changed every time when the page is reloaded

No comments:

Post a Comment