Overview of HTML and XML
Overview of HTML and XML
Contents
History
Usage
Examples
Advantages
Disadvantages
HTML
What is HTML?
Who created HTML?
What is the relationship between
SGML and HTML?
What is the usage of HTML?
What was the purpose of HTML?
What is HTML?
HTML stands for Hyper Text Markup
Language.
– Mark up is used to describe the pieces
and parts of a document.
The Key function of the markup is to add
labels to bits of text, and based on text the
output device can decide how best to format
the content.
Who created HTML?
HTML was created by Tim Berners-
Lee at European Laboratory for
Particle Physics (CERN) in late 1980’s.
What is XML?
What is the purpose of XML?
What are the Advantages of XML?
What are the Attributes and
Elements of XML?
What is XML?
XML stands for Extensible Markup
Language
XML is a markup language for
documents containing structured
information
XML is a language for describing
other languages
Purpose of XML
XML was designed with some goals in
mind.
– Simple Enough for everyone to learn
– Broad enough to support Rich Media
– Should not have any HTML drawbacks
– Should allow the user to create his own
tags
– should be able to interpret other languages
Elements and Attributes
Elements
– An XML element is made up of a start tag, an end
tag, and data in between. The start and end tags
describe the data in between, which is considered
the value of the element. E.g. The following
element is a element with the value ”Boston”.
– <city>Boston</city>
Elements and Attributes
Attributes
– An element can optionally contain one or more
attributes. An attribute is a name-value pair
separated by an equal sign (=)
<CITY ZIP=‘02115’>Boston</CITY>