CHSE_12TH_HTMLNote
CHSE_12TH_HTMLNote
SCHOOL
Jajpur Road
CHSE: 2ND Year Science
SUB: Information Technology HTML
HTML (Hypertext Markup Language)
o It stands for Hypertext Markup Language
o It is a language used for developing web pages. It is not a programming language, it is a markup
language. Mark-up means highlighting the text either by underline or different colors, or both. A markup
language is a collection of markup tags. HTML uses markup tags to describe web pages. HTML tags are
surrounded by angle brackets like <HTML>.
o HyperText: HyperText simply means "Text within Text. "Hypertext is the text used to link various web
pages. It is the text on a web page, which on clicking opens a new page.
o Language: it refers to and Language refers to the way of communication between web pages which has
its own syntax and rules.
o Tim Berners-Lee is known as the father of HTML. The first available description of HTML was a
document called "HTML Tags" proposed by Tim in late 1991 (CERN reaseach). The version of HTML is
HTML 1.0, HTML 2.0, HTML 3.2, HTML 4.01, HTML5. HTML5 is the newest version of HyperText Markup
language.
o HTML is text markup language. Therefore, no need to use compiler or interpreter. But, Browsers do
contain something similar to interpreter (called parser). Parser will identify various tags and display
them accordingly
Lets understands What is the meaning of HTML
Requirements of HTML
1. Browser: it is an application software package used to view and explore information on WWW. A list of
web browsers are
a. Internet explorer
b. Netscape navigator
c. Mozilla Firefox
d. Google chrome
e. Opera etc.
2. Editor: Text editor is used for writing HTML codes or tags for creating or developing web pages. The
simple word processor (Notepad) is called a text editor. Some text editors are
a. Notepad
b. Notepad++
c. FrontPage
d. Microsoft Word or OpenOffice Writer
e. Gedit etc.
<HEAD> This tag represents the document’s header which can keep title, scripts and <HEAD>
document descriptions. The contents of the head are not displayed. ……
</HEAD>
<TITLE> This tag contains the document title. This tag has to given within the <Head> tag. <TITLE>
The Title should be short less than 64 characters in a Title. …….
</TITLE>
BODY This tag represents the document’s body. This tag includes the text that contains <BODY>
the information about the document that gets displayed on the web page. ..……
</BODY>
HTML Elements
An HTML file is made of elements. These elements are responsible for creating web pages and define content in
that webpage. An element in HTML usually consist of a start tag <tag name>, close tag </tag name> and
content inserted between them. Technically, an element is a collection of start tag, attributes, end tag, content
between them.
HTML Tags:
Tag is an element which instructs the web browser, what to show and how to show. Tags are enclosed in
angular brackets (<>). HTML tags are two types:
1. Paired Tag: It has set of two commands that is starting (<>) and ending (</>) commands or tags. The first
tag (<H1>) in a pair is the start tag, the second tag (</H>) is the end tag. Starts and end tags are also
called opening and closing tags.
Example: <H1>….. </H2>.
2. Empty/singular tag: it is stand alone tag or singular tag. It has no ending tag. Sometimes it is called
unpaired tag.
Example: <BR>, <HR>
What is attribute?
o Attribute provides additional information like formatting effects, alignment, colors etc. Some tags can
have attributes.
o Attributes should always be applied with start tag.
o You can add multiple attributes in one HTML element, but need to give space between two attributes.
Body Tag
This tag represents the document’s body. This tag includes the text that contains the information about the
document that gets displayed on the web page. Body tag has various attributes.
Syntax:
<Body>…..</Body>
Different attributes of body tag
Attribute Description
Bgcolor It is used to change the default background color
Background It is used to specify the image as the background
Text It changes the body text color.
Leftmargin Sets the left margin of the text.
Topmargin Sets the top margin of the text
Link, alink, vlink Used to select the color of links in the web page
Example:
<!DOCTYPE html>
<html>
<head>
<title> Structure of HTML</title>
</head>
<body bgcolor="blue">
Information Technology
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title> Structure of HTML</title>
</head>
<body background="C:\Users\mansh\Desktop\download.jpg">
Information Technology
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title> Structure of HTML</title>
</head>
<body bgcolor="blue" text="white">
Information Technology
</body>
</html>
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Body Formatting</TITLE>
</HEAD>
<BODY topmargin="50" leftmargin="50">
Welcome to HTML Page
</BODY>
</HTML>
Example:
Heading element
The HTML heading tags are used to create headings for the content of a webpage. These tags are typically
placed inside a body tag. HTML offers six heading tags, from <h1> to <h6>, each heading in a different font size.
Syntax:
<Hn>…..</Hn>
<!DOCTYPE html>
<html>
<head>
<title> Structure of HTML</title>
</head>
<body>
<h1>Heading no. 1</h1>
<h2>Heading no. 2</h2>
<h3>Heading no. 3</h3>
<h4>Heading no. 4</h4>
<h5>Heading no. 5</h5>
<h6>Heading no. 6</h6>
</body>
</html>
Paragraph element
HTML <p> tags are used to write paragraph statements on a webpage. They starts wit the <p> tag and
end with </p>This is a container tag <p> and </p>. The default paragraph alignment is left.
Syntax:
<p>……</p>
Example:
<!DOCTYPE html>
<html>
<head>
<title> Structure of HTML</title>
</head>
<body>
<p> HTML is a language for specifying how text and graphics appear on a web page.</p>
</body>
</html>
Output:
Line Break (<BR>)Tag: The HTML <BR> tag is used to insert a single line break and does not require a closing tag
in HTML. The <BR \> element is an empty tag.
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Line Break</TITLE>
</HEAD>
<BODY>
<P> Hello!<BR>
How are you?</P>
</BODY>
</HTML>
<HR> Tag (Horizontal Ruler): It is used to divide a page into sections by creating horizontal line that spans from
the left to the right side of the page. This is an empty tag and does not require a closing tag.
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Horizontal Ruler</TITLE>
</HEAD>
<BODY>
<P> This is First paragraph</P>
<HR />
<P> This is Second paragraph</P>
</BODY>
</HTML>
Attributes of <HR> tag:
Size: The attribute size is used to determine the thickness of horizontal ruler. The default value is 2 pixels.
Width: The attribute width is used to determine the horizontal width of horizontal ruler. The default width
value is equal to the page width.
Noshade: The noshade attribute is used to produce a soild blank line without shade.
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Horizontal Ruler</TITLE>
</HEAD>
<BODY>
<P> This is First paragraph</P>
<HR size="4" width="70%">
<P> This is Second paragraph</P>
</BODY>
</HTML>
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Horizontal Ruler</TITLE>
</HEAD>
<BODY>
<P> This is First paragraph</P>
<HR width="70%" noshade>
<P> This is Second paragraph</P>
</BODY>
</HTML>
Comments: HTML Comments are used to add notes or explanations in the HTML code that are not displayed by
the browser. The comments are enclosed between <! - ……. ->.
Example;
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Comments</TITLE>
</HEAD>
<BODY>
<P> This is First paragraph</P>
<BR> <!- This tag create a new line->
<P> This is Second paragraph</P>
</BODY>
</HTML>
Text Format
HTML Formatting is a process of formatting text for better look and feel.
Following is the list of HTML formatting text.
Tag name Description Syntax
<b> This tag specifies that the text should be displayed in bold <b>…</b>
face.
<strong> This is a logical tag, it work same as the <b> tag. The text <strong>
displayed in bold face which tells the browser that the text ……..
is important. </strong>
<i> This tag specifies that the text should be displayed italic <i>…..</i>
font.
<em> This is a logical tag which is used to display content in italic. <em>…</em>
Emphasized text
<u> This tag specifies that the enclosed text should be <u>……</u>
underlined.
<tt> This tag specifies that the text should be displayed in fixed <tt>…..</tt>
width typewriter font. (not supported in HTML5)
<strike> This tag specifies that the enclosed text should be displayed <strike>….</strike>
with a horizontal line.. (Not supported in HTML5)
<sup> It displays the content slightly above the normal line with <sup>….</sup>
smaller font.
<sub> It displays the content slightly below the normal line with <sub>….</sub>
smaller font.
<blink> This tag states that the selected text to blink on the viewing <blink>…..</blink>
page. (Only supported Netscape Navigator browser).
<big> This specifies that the enclosed text should be displayed <big>….</big>
using a bigger font.
<small> This specifies that the enclosed text should be displayed <small>….</small>
using a smaller font.
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> PARAGRAPH FORMATTING</TITLE>
</HEAD>
<BODY>
<B> Text appear Bold</B><BR>
<I> Text appear in Italic</i><BR>
<U> Text appear underlined</U><BR>
<BIG>Text appear bigger</BIG><BR>
<SMALL> Text appear smaller</SMALL><BR>
<STRIKE> Text appear crossed out</STRIKE><BR>
Class 12<SUP>TH</SUP><BR>
10<SUB>2</SUB><BR>
<TT> Text appear in typewritter font</TT>
</BODY>
</HTML>
Font tag
This tag plays an important role in the web page to create an attractive and readable web page. The font tag is
used to change the face of the font, color and size of the text.
Syntax:
<FONT>…….</FONT>
Attributes of the Font Tag
• FACE: This attribute allows you to change of the face of the HTML document. For example, Arial, Calibri,
Times New Roman etc.
• COLOR: This attribute define the text color to be set.
• SIZE: This attribute defines the size of the font
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> TEXT FORMATTING</TITLE>
</HEAD>
<BODY>
<P><FONT FACE="Times New Roman" SIZE="24" COLOR="Red"> Welcome to HTML
World</FONT></P>
</BODY>
</HTML>
Table Tag:
HTML< table> tag is used to display data in tabular form. A table is divided into rows with the <tr> tag and each
row is divided into data cells using the <td> tag. A data cell can contain text, images, lists, paragraphs, forms,
horizontal ruler, table and so on. This tag opening with <table> and closing with </table>.
Different tags are used inside HTML Table Tags:
Tag Description Syntax
<tr> It defines a row in a table. <tr>…..</tr>
<th> It defines a header cell in a table. <th>…..</th>
<td> It defines a cell in a table. <td>…..</td>
<caption> It defines the table caption. <caption>…..</caption>
<tbody> It is used to group the body content in a <tbody>…..</tbody>
table.
<thead> It is used to group the header content in a <thead>……</thead>
table.
<tfooter> It is used to group the footer content in a <tfooter>…..</tfooter>
table.
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> TEXT FORMATTING</TITLE>
</HEAD>
<BODY>
<TABLE>
<CAPTION> Student Record </CAPTION>
<TH>NAME</TH>
<TH>MARKS</TH>
<TR>
<TD>Rahul</TD>
<TD>99</TD>
</TR>
<TR>
<TD> Rohit</TD>
<TD> 100</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE> TEXT FORMATTING</TITLE>
</HEAD>
<BODY>
<TABLE border=2 cellpadding=30 cellspacing=10 bordercolor="red">
<CAPTION> Student Record </CAPTION>
<TH>NAME</TH>
<TH>MARKS</TH>
<TR>
<TD>Rahul</TD>
<TD>99</TD>
</TR>
<TR>
<TD> Rohit</TD>
<TD> 100</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> TABLE</TITLE>
</HEAD>
<BODY>
<TABLE border=2 bordercolor="red" width=400 height=100>
<CAPTION> Student Record </CAPTION>
<TH>NAME</TH>
<TH>MARKS</TH>
<TR>
<TD>Rahul</TD>
<TD>99</TD>
</TR>
<TR>
<TD> Rohit</TD>
<TD> 100</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> TABLE</TITLE>
</HEAD>
<BODY>
<TABLE border=2 bordercolor="red" width=400 height=100>
<TR>
<TH colspan="2">Name</TH>
<TH>Age</TH>
</TH>
<TR>
<TD>Jill</TD>
<TD>Smith</TD>
<TD>43</TD>
</TR>
<TR>
<TD>Eve</TD>
<TD>Jackson</TD>
<TD>57</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> TABLE</TITLE>
</HEAD>
<BODY>
<TABLE border=2 bordercolor="red" width=400 height=100>
<TR>
<TH>Name</TH>
<TD>Jill</TD>
</TR>
<TR>
<TH rowspan="2">Phone</TH>
<TD>555-1234</TD>
</TR>
<TR>
<TD>555-8745</TD>
</TR>
</TABLE>
</BODY>
</HTML>
List tag: An HTML list allows you to organize data on web pages into an ordered or unordered format to make
the information easier to read. There are three types of list in HTML:
• Unordered List <UL>
• Ordered List <OL>
• Description List <DL>
Unordered list <UL> tag: An unordered list is a collection of related items that have no special order or
sequence. This list created by using <UL> tag. Each item in the list is marked with a bullet. Each list item starts
with the <LI> tag.
Syntax:
<UL>…….</UL>
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>LIST</TITLE>
</HEAD>
<BODY>
<UL>
<Li>Keyboard
<LI>Mouse
<LI>Scanner
<LI>Joystick
</BODY>
</HTML>
Ordered List: An ordered list can be numerical or alphabetical. This list is created by using <OL> tag. The
numbering starts at one and is incremented by one. Each list item starts with the <li> tag.
Syntax:
<OL>…..</OL>
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>Bullets List</TITLE>
</HEAD>
<BODY>
<OL>
<LI> BCA
<LI> MCA
<LI> M.Tech
</OL>
</BODY>
</HTML>
Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>Ordered List</TITLE>
</HEAD>
<BODY>
<OL Type="A" start= "4">
<LI> BCA
<LI> MCA
<LI> M.Tech
</OL>
</OL>
</OL>
</BODY>
</HTML>
Definition Lists: These lists are used to contain terms and their corresponding descriptions.
Definition list makes use of the following three tags:
• <DL> : Define the start of the list
• <DT> : A term
• <DD> : Term definition
• </DL> : Define the end of the list
Syntax: <DL>……</DL>
Example:
<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE>Definition List</TITLE>
</HEAD>
<BODY>
<DL>
<DT> HTML
<DD> This stands for HyperText Markup Language
<DT> HTTP
<DD> This stands for Hypertext Transfer Protocol
</DL>
</BODY>
</HTML>
Hyperlink
HTML hyperlink also known as link that are defined by <a> tag which stands for “anchor”. These links are
essential for navigation from one page to another page. The most important attribute of the <a> element is
the href attribute, which indicates the link's destination. It can be represented by an image or text or other
element.
By default, links will appear as follows in all browsers:
</BODY>
</HTML>
Example
</BODY>
</HTML>
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> TEXT FORMATTING</TITLE>
</HEAD>
<BODY>
<form>
First Name: <input type="text" name="firstname"size=20 maxlength=40> <br/>
Last Name: <input type="text" name="lastname" size=20 maxlength=40> <br/>
</form>
</BODY>
</HTML>
The radio button is used to select one option from multiple options. It is used for selection of gender, quiz
questions etc.
<!DOCTYPE HTML>
<HTML>
<HEAD>
</HEAD>
<BODY>
<form>
Gender:
</form>
</BODY>
</HTML>
Checkbox Control
The checkbox control is used to check multiple options from given checkboxes. It used to choose more options
at a time. They are also created using HTML <input> tag but type attribute is set to checkbox. You can use
checked attribute if you want to select it by default.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> FORM</TITLE>
</HEAD>
<BODY>
<form>
<H1>Select Game</H><BR>
<input type="checkbox" id="cricket" name="cricket" value="cricket">Cricket <BR>
<input type="checkbox" id="football" name="football" value="football">Football<BR>
<input type="checkbox" id="hockey" name="hockey" value="hockey">Hockey
</form>
</BODY>
</HTML>
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> FORM</TITLE>
</HEAD>
<BODY>
<form>
<H1>Select Game</H><BR>
<input type="checkbox" id="cricket" name="cricket" value="cricket" checked>Cricket <BR>
<input type="checkbox" id="football" name="football" value="football">Football<BR>
<input type="checkbox" id="hockey" name="hockey" value="hockey">Hockey
</form>
</BODY>
</HTML>
</form>
</BODY>
</HTML>
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> FORM </TITLE>
</HEAD>
<BODY>
<form>
<select name= "dropdown">
<option value="IT">IT</option>
<option value="PHYSICS" selected>PHYSICS</option>
<option value="CHEMESTRY">CHEMESTRY</option>
<option value="MATH">MATH</option>
</select>
</form>
</BODY>
</HTML>
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> FORM </TITLE>
</HEAD>
<BODY>
<form>
<label for="name">Enter name</label><br>
<input type="text" id="name" name="name"><br>
<label for="pass">Enter Password</label><br>
<input type="Password" id="pass" name="pass"><br>
<input type="submit" value="submit">
</form>
</BODY>
</HTML>
Input Type Month: user select a on the and year depending on the browser support, a date picker can show up
in the input field.
<!DOCTYPE html>
<html>
<head>
<title>Form in HTML</title>
</head>
<body>
<form>
Birthday (month and year):
<input type="month" value="2022-11">
</form>
</body>
</html>
Input type number: You can also set restrictions on what numbers are accepted.
<!DOCTYPE html>
<html>
<head>
<title>Form in HTML</title>
</head>
<body>
<form>
Quantity (between 1 and 5):
<input type="number" id="quantity" name="quantity" min="1" max="5">
</form>
</body>
</html>
Input Type Time: It allows user to select a time. Depending on the browser support, a time picker can show up
in the input field.
<!DOCTYPE html>
<html>
<head>
<title>Form in HTML</title>
</head>
<body>
<form>
Select Time:
<input type="time" name="usr-time">
</form>
</body>
</html>
Input Type Url: it is used for input fields that should contain a URL address. Depending on browser support, the
url field automatically validated when submitted.
<!DOCTYPE html>
<html>
<head>
<title>Form in HTML</title>
</head>
<body>
<form>
Add your home page:
<input type="url" name="homepage">
</form>
</body>
</html>
Input Type Week: it allows the user to select a week and year. Depending the browser support, a data picker
can show up in the input field.
<!DOCTYPE html>
<html>
<head>
<title>Form in HTML</title>
</head>
<body>
<form>
Select a week:
<input type="week" name="week_year">
</form>
</body>
</html>
HTML Image
HTML img tag is used to display image on the web page. HTML img tag is an empty tag that contains attributes
only, closing tags are not used in HTML image element.
<!DOCTYPE>
<html>
<body>
DHTML (Dynamic Hypertext Markup Language): Dynamic HTML is not a markup or programming language but it
is a term that combines the features of various web development technologies for creating the web pages
dynamic and interactive.
Components of Dynamic HTML
• DHTML consists of the following four components or languages:
• HTML 4.0
• CSS
• JavaScript
• DOM.
HTML 4.0
HTML is a client-side markup language, which is a core component of the DHTML. It defines the structure of a
web page with various defined basic elements or tags.
CSS
CSS stands for Cascading Style Sheet, which allows the web users or developers for controlling the style and
layout of the HTML elements on the web pages. CSS describes how HTML elements are to be displayed on
screen, paper, or in other media. CSS saves a lot of work. It can control the layout of multiple web pages all at
once.
JavaScript
JavaScript is a scripting language which is done on a client-side. The various browser supports JavaScript
technology. DHTML uses the JavaScript technology for accessing, controlling, and manipulating the HTML
elements. The statements in JavaScript are the commands which tell the browser for performing an action.
Syntax:
<script>
//JS code
<script>
DOM
DOM is the document object model. It is a w3c standard, which is a standard interface of programming for
HTML. It is mainly used for defining the objects and properties of all elements in HTML.
Uses of DHTML
3. Following are the uses of DHTML (Dynamic HTML):
4. It is used for designing the animated and interactive web pages that are developed in real-time.
5. DHTML helps users by animating the text and images in their documents.
6. It allows the authors for adding the effects on their pages.
7. It also allows the page authors for including the drop-down menus or rollover buttons.
8. This term is also used to create various browser-based action games.
9. It is also used to add the ticker on various websites, which needs to refresh their content automatically.
Features of DHTML
1. Following are the various characteristics or features of DHTML (Dynamic HTML):
2. Its simplest and main feature is that we can create the web page dynamically.
3. Dynamic Style is a feature, that allows the users to alter the font, size, color, and content of a web page.
4. It provides the facility for using the events, methods, and properties. And, also provides the feature of
code reusability.
5. It also provides the feature in browsers for data binding.
Difference between HTML and DHTML
HTML (Hypertext Markup language) DHTML (Dynamic Hypertext Markup language)
1. HTML is simply a markup language. 1. DHTML is not a language, but it is a set of
technologies of web development.
2. It is used for developing and creating web 2. It is used for creating and designing the
pages. animated and interactive web sites or pages.
3. This markup language creates static web 3. This concept creates dynamic web pages.
pages.
4. It does not contain any server-side 4. It may contain the code of server-side scripting.
scripting code.
5. The files of HTML are stored with the 5. The files of DHTML are stored with the .dhtm
.html or .htm extension in a system. extension in a system.
6. A simple page which is created by a user 6. A page which is created by a user using the
without using the scripts or styles called as HTML, CSS, DOM, and JavaScript technologies
an HTML page. called a DHTML page.
7. This markup language does not need 7. This concept needs database connectivity
database connectivity. because it interacts with users
HTML is used to display data and XML is used to transport and store
focuses on how data looks. data. It focuses on what data is.
HTML is a markup language itself. XML provides a framework to define
markup languages.
HTML is not case sensitive. XML is case sensitive.
HTML is a presentation language. XML is neither a presentation language
nor a programming language.
HTML has its own predefined You can define tags according to your
tags. need.
In HTML, it is not necessary to use XML makes it mandatory to use a
a closing tag. closing tag.
HTML is static because it is used XML is dynamic because it is used to
to display data. transport data.
HTML does not preserve XML preserve whitespaces.
whitespaces.
XML Syntax Rules:
• XML document must have a Root (Parent) Element
<root>
<child>
<subchild>…….</subchild>
</child>
</root>
Example:
<?xml version=”1.0” encoding=”UTF-8”>
<note>
<to> Asit</to>
<from>kunu</from>
<heading>Remainder</heading>
<body> Don’t forget me this weelkend!</body>
</note>
• All XML element must have a closing tag
• It is illegal to omit the closing tag
• XML tags are case sensitive
• XML elements must be properly nested
<b><i> prayas </b></i>….. incorrect
<b><i> prayas </i></b>….. correct
<i> element must close inside <b> tag.
• XML attribute value must be quoted
<note date=”12/11/2022”>
<to> Asit</to>
<from>kunu</from>
</note>
XML and XQuery
XQuery is a language for finding and extracting elements and attributes from XML documents.
• XQuery is the language for querying XML data
• XQuery for XML like SQL for database
• XQuery supported by all major databases
• XQuery is W3C Recommendation
XQuery can be used to:
• Extract information to use in a web service
• Generate summary reports
• Transform XML data to HTML
• Search web document for relevant information
Benefits of XML
The main benefit of XML is that it can be used to share data between two entirely platforms. For example, we
can take data from a database like MySQL, convert it into XML and then share with any other platform like MS
Excel, HTML etc. This way communication between two potentially different platforms is achieving using XML.