Professional Documents
Culture Documents
PRACTICAL NO 1
AIM: Create a web page which displays a message “This is my first web
page “using different level of headings”.
SOURCE CODE:
<html>
<head>
<title>Practical 1</title>
</head>
<body>
</body>
</html>
OUTPUT:
1
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 2
AIM: Write down brief history of web browser, search engine and html.
SOURCE CODE:
OUTPUT:
WEB BROWSER:-
A web browser (also referred to as an Internet browser or simply a browser) is application
software for accessing the World Wide Web or a local website. When a user requests a web
page from a particular website, the web browser retrieves the necessary content from a web
server and then displays the page on the user's device.
HISTORY:
Precursors to the web browser emerged in the form of hyperlinked applications during the
mid and late 1980s, and following these, Tim Berners-Lee is credited with developing, in
1990, both the first web server, and the first web browser, called Worldwide Weband later
renamed Nexus. Many others were soon developed, with Marc Andreessen's
1993 Mosaic (later Netscape), being particularly easy to use and install, and often credited
with sparking the internet boom of the 1990s. Today, the major web browsers
are Chrome, Safari, Internet Explorer, Firefox, Opera, and Edge.
1. Internet Explorer
2. Google Chrome
3. Mozilla Firefox
2
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
4. Safari
5. Opera
6. Konqueror
7. Lynx
SEARCH ENGINE:
A search engine is a software system that is designed to carry out web searches. They search
the World Wide Web in a systematic way for particular information specified in a
textual web search query. The search results are generally presented in a line of results, often
referred to as search engine results pages (SERPs).
HISTORY:
The first popular search engine on the Web was Yahoo! Search.] The first product
from Yahoo!, founded by Jerry Yang and David Filo in January 1994, was a Web
directory called Yahoo! Directory. In 1995, a search function was added, allowing users to
search Yahoo! Directory. It became one of the most popular ways for people to find web
pages of interest, but its search function operated on its web directory, rather than its full-text
copies of web pages.
TYPES AND EXAMPLES:
1. Google
3
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
2. Bing
3. Yahoo
4. Baidu
5. AOL
HTML:
The HypertextMark-up Language or HTML is the standard mark-up language for documents
designed to be displayed in a web browser. It can be assisted by technologies such
as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.Web
browsers receive HTML documents from a web server or from local storage and render the
documents into multimedia web pages. HTML describes the structure of a web
page semantically and originally included cues for the appearance of the document.
HISTORY:
In 1980, physicist Tim Berners-Lee, a contractor at CERN, proposed and
prototyped ENQUIRE, a system for CERN researchers to use and share documents. In 1989,
Berners-Lee wrote a memo proposing an Internet-based hypertext system. Berners-Lee
specified HTML and wrote the browser and server software in late 1990. That year, Berners-
Lee and CERN data systems engineer Robert Cailliau collaborated on a joint request for
funding, but the project was not formally adopted by CERN. In his personal notesfrom 1990
he listed "some of the many areas in which hypertext is used" and put an encyclopedia first.
STRUCTURE OF HTML:
4
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 3
AIM: Create a web page using html demonstrating all the attributes of
body tag , font tag,paragraph tag.
SOURCE CODE:
<html>
<head>
</head>
<body bgcolor="red">
<h1> E-Commerce</h1>
5
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<h1> E-Commerce</h1>
</body>
</html>
OUTPUT:
6
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 4
AIM: Create a web page using HTML and write three paragraph about
leadership skills using three container tag and 2 empty tag.
SOURCE CODE:
<html>
<head>
</head>
7
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<body bgcolor="red">
<hr>
<br>
<br>
</body>
</html>
OUTPUT:
8
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 5
9
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
Pnew=Pold+X2-Yacosx
SOURCE CODE:
<html>
<head>
<title>pratical no 5</title>
</head>
<body bgcolor="lightgreen">
<br>
10
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
</body>
</html>
OUTPUT:
PRACTICAL NO 6
11
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
SOURCE CODE:
<html>
<head>
<title>pratical no 6</title>
</head>
<body bgcolor="red">
<h1 ALIGN="CENTER"><u>MYSELF</u></H1>
<blockquote>
A-33,UTTAM NAGAR<br>
STREET NO 18<br>
NEW DELHI<br>
</BLOCKQUOTE>
<STRIKE><PRE><font size="6">
B-49,UTTAM NAGAR
NEW DELHI
</font>
</PRE></STRIKE>
<H2><U> INTRODUCTION</U></H2>
12
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<br>
</font></p>
<BR>
<PRE><font size="6">
</font>>
</PRE>
<BR>
<CODE><PRE><font size="6">
BLOCKQUOTE TAG
EMPHASIZED TAG
PRE TAG
MARK TAG
STRIKE TAG
CODE TAG</font></PRE></CODE>
</BODY>
</HTML>
OUTPUT:
13
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
14
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 7
AIM: Create a web page describing your friend , where default font size
should be 20 and friend name should be moving front and back.
SOURCE CODE:
<html>
<head>
</HEAD>
<BODY BGCOLOR="ORANGE">
<H1><CENTER><U>MY FRIEND</U></CENTER></H1>
<H1><CENTER><MARQUEE DIRECTION="RIGHT"
SCROLLAMOUNT="35">KARTIK </MARQUEE></CENTER></H1>
<BR>
</BODY>
</HTML>
OUTPUT:
15
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 8
AIM: Write the html code to insert 3 images aligned left,center and right
with the help of adjusting height& width of image, also change the
background color as a pink of the web page give the proper heading of the
web page.
SOURCE CODE:
<html>
<head>
</head>
<body bgcolor="pink">
</body>
</html>
16
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
OUTPUT :
17
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 9
AIM: Write html code to insert different images aligned right, left,top and
bottom with the help of float tag.
SOURCE CODE:
<HTML>
<HEAD>
</HEAD>
<BODY bgcolor="orange"s>
</font></P>
<P><font size="6">
</font></P><br>
<P><font size="6">
18
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
</font></P>
</body>
</HTML>
OUTPUT:
19
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 10
AIM: Create a static page of an astrology site and use hyperlink to open the
horoscope of different zodiac signs.
MASTER PAGE
SOURCE CODE:
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="YELLOW">
20
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<A HREF="SAGGITARIUS.HTML"TARGET="_BLANK"><IMG
SRC="SAGITTARIUS.JPG" BORDER="2PX SOLID BLACK" HEIGHT="200"
WIDTH="200"ALT="IMAGE NOT FOUND"></A>
<A HREF="CAPRICORN.HTML"TARGET="_BLANK"><IMG
SRC="CAPRICORN.JPG" BORDER="2PX SOLID BLACK" HEIGHT="200"
WIDTH="200"ALT="IMAGE NOT FOUND"></A>
</BODY>
</HTML>
OUTPUT:
ARIES.HTML
SOURCE CODE:
21
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<html>
<head>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> ARIES</CENTER></B></U></H1>
</BODY>
</HTML>
OUTPUT:
TAURUS.HTML
SOURCE CODE:
22
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<html>
<head>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> TAURUS</CENTER></B></U></H1>
</FONT></P>
</BODY>
</HTML>
OUTPUT:
GEMINI.HTML
SOURCE CODE:
23
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<html>
<head>
<title>GEMINI </title>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> GEMINI</CENTER></B></U></H1>
</FONT></P>
</BODY></HTML>
OUTPUT:
CANCER.HTML
SOURCE CODE:
<html>
24
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<head>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> CANCER</CENTER></B></U></H1>
</FONT></P>
</BODY>
</HTML>
OUTPUT:
LEO.HTML
25
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
SOURCE CODE:
<html>
<head>
<title> leo</title>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> LEO</CENTER></B></U></H1>
</BODY>
</HTML>
OUTPUT:
VIRGO.HTML
SOURCE CODE:
26
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<html>
<head>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> VIRGO</CENTER></B></U></H1>
Virgo (♍︎
) (Greek: Παρθένος, Parthenos) is the sixth
astrological sign in the Zodiac. It spans the 150–180th degree
of the zodiac. Under the tropical zodiac, the Sun transits
this area, on average, between August 23 and September 22,
while the Sun transits the Virgo from approximately September
16 to October 30.</FONT></P>
</BODY>
</HTML>
OUTPUT:
LIBRA.HTML
SOURCE CODE:
27
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<html>
<head>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> LIBRA</CENTER></B></U></H1>
</BODY>
</HTML>
OUTPUT:
SCORPIO.HTML
SOURCE CODE:
28
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<html>
<head>
<title> SCORPIO</title>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> SCORPIO</CENTER></B></U></H1>
</BODY>
</HTML>
OUTPUT:
SAGITTARIUS.HTML
SOURCE CODE:
29
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<html>
<head>
<title> SAGITTARIUS</title>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> SAGITTARIUS</CENTER></B></U></H1>
</BODY>
</HTML>
OUTPUT:
CAPRICORN.HTML
30
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
SOURCE CODE:
<html>
<head>
<title> CAPRICORN</title>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> CAPRICORN</CENTER></B></U></H1>
</BODY>
</HTML>
OUTPUT:
31
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
AQUARIUS.HTML
SOURE CODE:
<html>
<head>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> AQUARIUS</CENTER></B></U></H1>
</BODY>
</HTML>
OUTPUT:
32
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PISCES.HTML
SOURCE CODE:
<html>
<head>
<title> PISCES</title>
</head>
<body BGCOLOR="ORANGE">
<h1><u><b><center> PISCES</CENTER></B></U></H1>
</BODY>
</HTML>
OUTPUT:
33
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 11
AIM: Insert an image in a document and link it to some other page.
SOURCE CODE:
<html>
<head>
<title>practical no 11</title>
</head>
<body bgcolor="black">
<A
HREF="https://en.wikipedia.org/wiki/Virat_Kohli"TARGET="_BLANK
"><IMG SRC="VIRAT.JPG" BORDER="2PX SOLID BLACK" ALIGN="LEFT"
HEIGHT="300" WIDTH="300"ALT="IMAGE NOT
FOUND"></A> &nb
sp;  
; &
nbsp; &nb
sp;
<A
HREF="https://en.wikipedia.org/wiki/MS_Dhoni"TARGET="_BLANK"><
IMG SRC="DHONI.JPG" BORDER="2PX SOLID BLACK" ALIGN="CENTER"
HEIGHT="300" WIDTH="300"ALT="IMAGE NOT FOUND"></A>
<A
HREF="https://en.wikipedia.org/wiki/Rohit_Sharma"TARGET="_BLAN
K"><IMG SRC="ROHIT.JPG" BORDER="2PX SOLID BLACK"ALIGN="RIGHT"
HEIGHT="300" WIDTH="300"ALT="IMAGE NOT FOUND"></A>
</BODY>
</HTML>
OUTPUT:
34
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
35
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
36
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 12
AIM: Design a document containing image map.
SOURCE CODE:
<html>
<head>
<title>Image Map</title>
</head>
<body>
<map name="map">
</map>
</body>
</html>
OUTPUT:
37
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
38
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
39
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 13
AIM: Write a html code to produce the following output
C Vegetables
Onion
Potato
D Fruits
Mango
Grapes
SOURCE CODE:
<html>
<head>
</head>
<body bgcolor="pink">
<p>
<li> Vegetables
<ul>
<li> Onion</li>
<li>Potato</li>
</ul>
</li>
<li> Fruits
40
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<ul>
<li> Mango</li>
<li> Grapes</li>
</ul>
</li>
</ol>
</p>
</body>
</html>
OUTPUT:
41
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 14
AIM: Write code for the following list:
Newspaper
5 Times of India
6 Hindustan Times
7 Navbharat Times
Magazines
i The Week
SOURCE CODE:
<html>
<head>
</head>
<p>
<li> Newspaper
</ol>
</li>
<li>Magazines
<ol type="i">
42
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
</ol>
</li>
</ul>
</font>
</p>
</body>
</html>
OUTPUT:
43
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 15
AIM: Write the html code to produce the following output:
I. First level
A. Second level
B. Second level
1. Third level
2. Third level
a. Fourth level
b. Fourth level
i. Fifth level
ii. Fifth level
iii. Fifth level
iv. Fifth level
c. Fourth level
d. Fourth level
3. Third level
a. Fourth level
b. Fourth level
4. Third level
C. Second level
1. Third level
2. Third level
D. Second level
II. First level
A. Second level
1. Third level
2. Third level
a. Fourth level
b. Fourth level
B. Second level
C. Second level
D. Second level
III. First level
44
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
SOURCE CODE:
<html>
<head>
</head>
<p>
<ol type="I">
<ol type="A">
<li>second level</li>
<ol type="a">
<ol type="i">
</ol>
</ol>
45
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<ol type="a">
</ol>
</ol>
<ol>
</ol>
</ol>
<ol type="A">
<ol>
<ol type="a">
</ol>
</ol>
46
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
</ol>
</ol>
</p>
</body>
</html>
OUTPUT:
47
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 16
AIM: Create a table using html and write the marks of 10 students.
Captions is student performance.
SOURCE CODE:
<html>
<head>
</head>
<body>
<tr>
<tH> S.NO</TH>
<TH> NAME</TH>
<TH> MARKS</TH>
</TR>
<tr>
<td> 1</TD>
<TD>GAURAV</TD>
<TD> 85</TD>
</TR>
<tr>
<td> 2</TD>
<TD> HRITIK</TD>
<TD> 50</TD>
</TR>
<tr>
48
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<td>3</TD>
<TD>GOURANSH</TD>
<TD> 87</TD>
</TR>
<tr>
<td> 4</TD>
<TD> PIYUSH</TD>
<TD> 90</TD>
</TR>
<tr>
<td> 5</TD>
<TD> MANYA</TD>
<TD>95</TD>
</TR>
<tr>
<td> 6</TD>
<TD> KARTIK</TD>
<TD> 20</TD>
</TR>
<tr>
<td> 7</TD>
<TD> AYUSH</TD>
<TD> 70</TD>
</TR>
<tr>
<td> 8</TD>
<TD> PARTH</TD>
49
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<TD> 60</TD>
</TR>
<tr>
<td> 9</TD>
<TD> ANUSHIKA</TD>
<TD> 80</TD>
</TR>
<tr>
<td> 10</TD>
<TD> ANSHUMAN</TD>
<TD> 50</TD>
</TR>
</TABLE>
</BODY>
</HTML>
OUTPUT:
50
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 17
AIM: Display table with the given format with image and hyperlink
SOURCE CODE:
<HTML>
<HEAD>
</HEAD>
<BODY>
<TR>
<TH> S.NO</TH>
<TH> IMAGE</TH>
<TH>PROFESSION</TH>
</TR>
<TR>
<TD> 1</TD>
<TD> VIRAT</TD>
<TD> KOHLI</TD>
<TD><A HREF="https://en.wikipedia.org/wiki/Virat_Kohli"
TARGET="-BLANK">CRICKETER </A></TD>
</TR>
<TR>
51
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<TD> 2</TD>
<TD> BACHCHAN</TD>
<TD><A HREF="https://en.wikipedia.org/wiki/Amitabh_Bachchan"
TARGET="-BLANK"> AMITABH BACHCHAN</A></TD>
</TR>
<TR>
<TD> 3</TD>
</TR>
<TR>
<TD> 4</TD>
<TD> AJEY</TD>
</TR>
<TR>
<TD> 5</TD>
<TD> ASLAM</TD>
52
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<TD><A HREF="https://en.wikipedia.org/wiki/Atif_Aslam"
TARGET="-BLANK"> SINGER</A></TD>
</TR>
</TABLE>
</BODY>
</HTML>
OUTPUT:
53
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
54
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
55
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 18
AIM: Display table with the given format with rowspan and colspan.
SOURCE CODE:
<HTML>
<HEAD>
</HEAD>
<BODY>
<TR>
<TH> TIME</TH>
<TH> MONDAY</TH>
<TH>WEDNESDAY</TH>
<TH> THRUSDAY</TH>
<TH> FRIDAY</TH>
<TH> SATURDAY</TH>
</TR>
<TR>
<TD> 10:30-11:30</TD>
<TD> </TD>
<TD></TD>
<TD> </TD>
<TD> </TD>
56
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<TD> </TD>
</TR>
<TR>
<TD> 11:30-12:30</TD>
<TD> DTB(RSU)</TD>
<TD> ACTIVITY</TD>
<TD></TD>
</TR>
<TR>
<TD>12:30-01:30</TD>
<TD> E-COMM(GK)</TD>
<TD>BE(SG)</TD>
</TR>
<TR>
<TD>01:30-02:30</TD>
<TD> CA(JJ)</TD>
<TD> E-COMM(GK)</TD>
<TD> CA(JJ)</TD>
</TR>
<TR>
<TD>02:30-03:00</TD>
</TR>
57
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
<TR>
<TD> 03:30-04:30</TD>
<TD></TD>
<TD></TD>
<TD COLSPAN="2"><CENTER>DTB(RSU)</CENTER></TD>
<TD> BC(SD)</TD>
<TD> DTB(RSU)</TD>
</TR>
</TABLE>
</BODY>
</HTML>
OUTPUT:
58
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 19
AIM: Make a nested table using HTML
SOURCE CODE:
<html>
<body>
<tr
</tr>
<tr>
</tr>
</table
</td>
</tr>
<tr>
</tr> </table>
</body>
</html>
OUTPUT:
59
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
60
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 20
AIM: Create a web page to add a video clip, audio clip, and embed a
YouTube video in HTML page.
SOURCE CODE:
<html>
<head>
</head>
<body background="image2.jfif">
<h1> <center>AUDIO</center></H1>
<center><audio controls>
</audio></center>
<H1><center> VIDEO</center></H1>
</VIDEO></center>
</body>
</html>
OUTPUT:
61
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
62
GAURAV AGGARWAL E-COMMERCE LAB FILE 06121101721
PRACTICAL NO 21
AIM: Create a webpage document and apply the following:
SOURCE CODE:
63