HTML And XML
Difference between HTML and XML:
Difference
|
HTML
|
XML
|
Definition
|
Markup language for displaying web
pages in a web browser. Designed to display data with focus on how the data
looks
|
Markup language defines a set of
rules for encoding documents that can be read by both humans and machines.
Designed with focus on storing and transporting data.
|
Date when invented
|
1990
|
1996
|
Type
|
Static
|
Dynamic
|
Usage
|
Display a web page
|
Transport data between the
application and the database. To develop other mark up languages.
|
Processing/Rules
|
No strict rules. Browser will still
generate data to the best of its ability
|
Strict rules must be followed or
processor will terminate processing the file
|
Language type
|
Presentation
|
Neither presentation, nor programming
|
Tags
|
Predefined
|
Custom tags can be created by the
author
|
White Space
|
Cannot preserve white space
|
Preserves white space
|
Limitations
|
Data does not know itself very well.
Data cannot change in response to environment. Data cannot be easily
maintained. Cannot store or call on variables. Lacks the capability to define
new structures by defining relationships between classes. Tags are not useful
for exchanging the document between applications.
|
Cannot be used as a subtype of a
sql_variant instance.
Does not support casting or
converting to either text or ntext. Does not support the following column and
table constraints. XML provides its own encoding. Collations apply to string
types only. Cannot be compared or sorted. Cannot be used in Distributed Partitioned
Views. Not well supported by browsers.
|
loading...
No comments: