Sunteți pe pagina 1din 15

HTTP

HTTPS

URL begins with "http://"

URL begins with "https://"

It uses port 80 for communication.

It uses port 443 for communication.

Unsecured.

Secured.

Operates at Application Layer.

Operates at Transport Layer.

No encryption.

Encryption is present.

No certificates required.

Certificates(SSL) required.

Full form: HyperText Transfer Protocol (HTTP)

Full form: HyperText Transfer Protocol Secure


(HTTPS)

Key Point
stands for
Derived from

XML
eXtensible Markup Language

Hyper Text Markup Language

XML derived from SGML(Standard

Where as the HTML derived same from

Generalized Markup Language).

SGML.

XML was designed for holds data. Use


Purpose

for transport
data between application and
database.

Rules

HTML

XML was follow strict rules. Any time


terminate the process if rules break.

Case Sensitive XML is case sensitive.

HTML was designed for specify how


to datashould be display on web
page.
HTML was not following any strict
rules. All browser try to display data to
the best as per its ability.
HTML is not a case sensitive.

XML uses for temporary/permanent


Uses

storing data. But now a day use for

HTML uses for web presentation

write markup language that are

layer along with CSS you can make

render/connect to a application and

very interactive design.

database.
Tags

XML tags you can define custom


tag by ourself.
XML tags must have closing tag.

How to write

Example. <note>Travel
experience</note>

Whitespace

Behavior

HTML tags are predefined.


HTML tags are two type closing
tag or self-closing tag.
Example. self-closing tag <br />,
Closing tag <p>Travel experience</p>

XML was preserve only one

Where as the HTML was preserve

whitespace.

only one whitespace.

XML was dynamic for holding data.

While HTML was static for displaying


data.

XML replace to HTML?


No, XML was not developed for a replacement for HTML. XML was uses for describe the
web data in specific structure format. While HTML was uses for how to display that

data on web page.

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

Extended from

SGML

SGML

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.

The Difference Between XML and HTML


XML and HTML were designed with different goals:

XML was designed to carry data - with focus on what data is

HTML was designed to display data - with focus on how data looks

XML tags are not predefined like HTML tags are

What is the difference between XML and HTML?


1

By admin
July 11th, 2013

XML is the acronym from Extensible Markup Language (meta-language of


noting/marking). XML is a resembling language with HTML. It was developed for
describing data.
The XML tags are not pre-defined in XML. You will have to create tags according to
your needs.
XML is self descriptive.
XML uses DDT principle (Defining the Document Type) to formally describe the
data.
The main difference between XML and HTML: XML is not a substitute for HTML.

XML and HTML were developed with different purposes:

XML was developed to describe data and to focalize on what the data represent.
HTML was developed to display data about to focalize on the way that data looks.
HTML is about displaying data, XML is about describing information.
XML is extensible.

How can you use XML?

XML
XML
XML
XML

can
can
can
can

store data separately from HTML.


be used to store data inside the HTML documents.
be used as a format for exchanging information.
be used to store data in files and databases.

he root cause of the problem lies in HTML (Hyper Text Markup Language), the defacto standard for
web publication. The major problem with HTML is its fixed tagset. This tagset is mainly for display of
the content and HTML provides no tag to address the content precisely.
XML (extensible Markup Language) designed by W3C (World Wide Web Consortium) promises a
possible solution to this problem.
The major advantage of XML over HTML is its extensibility i.e., provision of user defined tags and
attributes to identify the structural elements of a document. XML also provides structural complexity to
define document structure that can be nested at any level of complexity.
XML also facilitates the transfer of structured data between servers. XML describes data, such as
city name, temperature and barometric pressure, while HTML defines tags that describe how the data
should be displayed, such as with a bulleted list or a table.

answered Sep 19, 2014 by sheebaaltaf

XML and XHTML have an infinite number of possible elements, whereas


HTML has a very strict set of predefined elements.
An HTML document can be XML, but an XML document can't be HTML
unless it uses the named HTML elements and served as XHTML.
XML (and to some degree XHTML) have to be well-formed and valid before
they can be interpreted, HTML can be still be interpreted even if it is
malformed and invalid.
XML attributes have to be quoted and can't be value-less. HTML attributes
can omit redundant values and only need quotes in certain conditions, unless
it's XHTML, in which case it assumes XML attribute rules.
HTML can be parsed as text/html and application/xhtml+xml, over and
above what XML can be parsed as: application/xml.
XML and XHTML have to have a closing element for each open element.
Depending on the element, HTML doesn't care whether an element has a
closing tag or not.
XML elements are mostly meaningless and its parsers won't act on those
elements, whereas the elements of an HTML document convey meaning or
browser-instruction by their use.
HTML has been in use a lot longer than XML

19.9k Views View Upvotes


Upvote19

XML and HTML may similar in few features but they are different
1, The XML tags are not pre-defined , You can create tags according to your needs.
2, HTML is static and XML is dynamic.
3, XML is self descriptive.
4, XML is a case sensitive but HTML interpreters are very forgiving about missing end
tags but XML parse are not.
5, HTML was developed to display data, it concentrate on the way that data looks.
6, XML was developed to describe data, it concentrate what the data represent.
XML is not a substitute for HTML.

Download
College grants for students
Test
Name Search
Questions and answers
HTML

XML

HTML is an abbreviation for HyperText


Markup Language.

XML stands for eXtensible Markup


Language.

HTML was designed to display data


with focus on how data looks.

XML was designed to be a software and


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 rendered on the client side.

XML is used basically to transport


data between the application and the
database.

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

XML is about carrying information,

static.

hence dynamic.

Advantages of XML

It is a simultaneously human- and machine-readable format.

It supports Unicode, allowing almost any information in any written human language to be
communicated.

It can represent the most general computer science data structures: records, lists and trees.

Its self-documenting format describes structure and field names as well as specific values.

The strict syntax and parsing requirements make the necessary parsing algorithms extremely
simple, efficient, and consistent.

XML is heavily used as a format for document storage and processing, both online and offline.

It is based on international standards.

It allows validation using schema languages such as XSD and Schematron, which makes
effective unit-testing, firewalls, acceptance testing, contractual specification and software
construction easier.

The hierarchical structure is suitable for most (but not all) types of documents.

It manifests as plain text files, which are less restrictive than other proprietary document
formats.

It is platform-independent, thus relatively immune to changes in technology.

Forward and backward compatibility are relatively easy to maintain despite changes in DTD or
Schema.

Its predecessor, SGML, has been in use since 1986, so there is extensive experience and
software available.

Disadvantages of XML

XML syntax is redundant or large relative to binary representations of similar data.

The redundancy may affect application efficiency through higher storage, transmission and
processing costs.

XML syntax is too verbose relative to other alternative text-based data transmission formats.

No intrinsic data type support: XML provides no specific notion of integer, string, boolean,
date, and so on.

The hierarchical model for representation is limited in comparison to the relational model or an
object oriented graph.

Expressing overlapping (non-hierarchical) node relationships requires extra effort.

XML namespaces are problematic to use and namespace support can be difficult to correctly
implement in an XML parser.

XML is commonly depicted as self-documenting but this depiction ignores critical ambiguities.

1.XML is a mark-up language while XLS is a file format for Microsoft


Excel
2.XML is an open format while XLS is a proprietary format
3.XML is user-readable while XLS is not
4.XLS is being replaced with a newer format based on XML
Read more: Difference Between XML and XLS | Difference
Between http://www.differencebetween.net/technology/protocolsformats/difference-between-xml-and-xls-2/#ixzz4SKIPWq3W

S-ar putea să vă placă și