E Commerce
E Commerce
OF
E-COMMERCE LAB
This is to certify that the practical file titled “E-COMMERCE LAB” submitted by
The assistance rendered during the study has been duly acknowledged.
No part of this work has been submitted for any other degree.
Any accomplishment requires the effort of many people and this work is not
different. Regardless of the source, I wish to express my gratitude to those who
may have contributed to this work, even though anonymously.
I would like to pay my sincere thanks to my Ecommerce Lab faculty, Dr. Rakhi
Chawla under whose guidance I was able to complete my practical successfully. I
have been fortunate enough to get all the support, encouragement and guidance
from him needed to explore, think new and initiate.
My final thank goes out to my parents, family members, teachers and friends who
encouraged me countless times to persevere through this entire process.
Chirag Gandhi
INDEX
S.no. Topic Page No.
6. Explain Hyper link also write HTML code to explain Anchor Tag. 16-17
HTML stands for Hypertext Markup Language. It is used to design web pages using a markup
language. HTML is a combination of Hypertext and Markup language. Hypertext defines the
link between web pages. A markup language is used to define the text document within the tag
which defines the structure of web pages. This language is used to annotate (make notes for the
computer) text so that a machine can understand it and manipulate text accordingly. Most
markup languages (e.g., HTML) are human-readable. The language uses tags to define what
manipulation has to be done on the text.
In the late 1980's, a physicist, Tim Berners-Lee who was a contractor at CERN, proposed a
system for CERN researchers. In 1989, he wrote a memo proposing an internet-based hypertext
system.
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. The latest version of HTML is
HTML5, which we will learn later in this tutorial.
Hyper Text: Hypertext simply means "Text within Text." A text has a link within it, is a
hypertext. Whenever you click on a link which brings you to a new webpage, you have clicked
on a hypertext. Hypertext is a way to link two or more web pages (HTML documents) with each
other.
Markup language: A markup language is a computer language that is used to apply layout and
formatting conventions to a text document. Markup language makes text more interactive and
dynamic. It can turn text into images, tables, links, etc.
Web Page: A web page is a document which is commonly written in HTML and translated by a
web browser. A web page can be identified by entering an URL. A Web page can be of the static
or dynamic type.
With the help of HTML only, we can create static web pages.
An HTML tag must contain three parts:
However, some HTML tags can be unclosed. That means that the HTML tag does not need to be
closed with a </ >. You’ll typically use unclosed tags for metadata or line breaks.
The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents and
display them correctly.
A browser does not display the HTML tags, but uses them to determine how to display the
document:
HTML Page
Structure
Tag USE
<p> Paragraph
<h1> Heading 1
<h2> Heading 2
<h3> Heading 3
<h4> Heading 4
<h5> Heading 5
<h6> Heading 6
<strong> Strong
<em> Emphasis
<abbr> Abbreviation
<div> Division
<base> Base URL For All Relative URL Within the Document
<img> Image
<li> List
CODE:
OUTPUT
:
HTML CODE FOR ORDERED LIST
CODE:
OUTPUT
:
HTML CODE FOR UNORDERED LIST
CODE:
OUTPUT
:
HTML CODE FOR NESTED LIST
CODE:
OUTPUT
:
HTML CODE FOR INSERTING
IMAGE
CODE:
OUTPUT
:
HTML CODE TO DESIGN TABLES WITH DIFFERENT
STYLES
CODE 1:
<html>
<head><title>Time Table</title> </head>
<body>
<table border="2">
<tr>
<th>Day/Time</th>
<th>09:00-10:00</th>
<th>10:00-11:00</th>
<th>11:00-12:00</th>
<th>12:00-01:00</th>
<th>01:00-02:00</th>
</tr>
<tr>
<th>monday</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>tuesday</th>
<td>Be</td>
<td>BC</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>WEDNESday</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>THURSDAY</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>FRIDAY</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
</TABLE>
</BODY>
</HTML>
OUTPUT:
EXAMPLE OF DESIGNING TABLES WITH THE HELP OF ROWSPAN:
CODE 2:
<html>
<head><title>Time Table</title>
</head>
<body>
<table border="2">
<tr>
<th rowspan ="6"> time table</th>
</tr>
<tr>
<th>Day/Time</th>
<th>09:00-10:00</th>
<th>10:00-11:00</th>
<th>11:00-12:00</th>
<th>12:00-01:00</th>
<th>01:00-02:00</th>
<tr>
<tr>
<th>monday</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>tuesday</th>
<td>Be</td>
<td>BC</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>WEDNESday</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>THURSDAY</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>FRIDAY</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
</TABLE>
</BODY>
</HTML>
OUTPUT:
EXAMPLE OF DESIGNING TIME TABLE WITH THE HELP OF COLSPAN:
CODE 3:
<html>
<head><title>Time Table</title>
</head>
<body>
<table border="2">
<tr>
<th colspan="6"> time table</th>
</tr>
<tr>
<th>Day/Time</th>
<th>09:00-10:00</th>
<th>10:00-11:00</th>
<th>11:00-12:00</th>
<th>12:00-01:00</th>
<th>01:00-02:00</th>
</tr>
<tr>
<th>monday</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>tuesday</th>
<td>Be</td>
<td>BC</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>WEDNESday</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>THURSDAY</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
<tr>
<th>FRIDAY</th>
<td>BC</td>
<td>BE</td>
<td>DTB</td>
<td>EC</td>
<td>CA</td>
</tr>
</TABLE>
</BODY>
</HTML>
OUTPUT:
HYPERLINK
A hyperlink, or simply a link, is a digital reference to data that the user can follow or be guided
to by clicking or tapping. A hyperlink points to a whole document or to a specific element
within a document. Hypertext is text with hyperlinks. The text that is linked from is known as
anchor text. A software system that is used for viewing and creating hypertext is a hypertext
system, and to create a hyperlink is to hyperlink (or simply to link). A user following hyperlinks
is said
to navigate or browse the hypertext. A hyperlink is an element in an HTML document that
links to either another portion of the document or to another document altogether. On
webpages, hyperlinks are usually colored purple or blue and are sometimes underlined.
Hyperlinks can be generally divided into two: internal and external hyperlinks.
1) Internal Hyperlink
An internal hyperlink is a link that connects the different subpages of one domain. It’s usually organized
in a web that’s known as a link structure. It’s also used to direct a website’s visitors through its content
in a particular fashion known as a click path. A link structure has four classic forms: linear, tree,
star, and network, with each one having varying click path controls.
2) External Hyperlink
An external hyperlink connects users to a different domain. It can be classified either as an
outbound or an incoming hyperlink.
Aside from the internal and external types, you can also categorize hyperlinks as:
a) Text links
The text hyperlink is one of the most common types of links. It’s a clickable text that’s used to
go to another page or resource.
b) Image links
An image link is a hyperlink in image form. One of the most common examples of image links
is the banner ads on various websites.
c) Anchor links
Not to be confused with anchor text, anchor links bring the reader from one place in a document
to a different section of the same document, like in a table of contents.
d) Fat links
A fat link or an extended link is one link that has multiple destinations.
ANCHOR
TAG
CODE:
OUTPUT
:
HTML CODE FOR SIGN UP
FORM
CODE:
OUTPUT
:
ROWSPAN
CODE:
OUTPUT
:
COLSPAN
CODE:
OUTPUT
:
HTML CODE FOR PERSONAL
PROFILE
CODE:
<html>
<head>
<title>Resume</title>
</head>
<body>
<h1>Resume</h1>
<div class="section">
<h2>Personal Information</h2>
<p>Name: CHIRAG GANDHI</p>
<p>Email: [email protected]</p>
<p>Phone: 7775589260</p>
<p>Address: h.no-707,sector-16A,Faridabad,121002</p>
</div>
<div class="section">
<h2>Education</h2>
<p>Degree: Bachelor of science</p>
<p>Major: computer science</p>
<p>University: GURU GOBINDH
SINGH INDRAPRASTHA University</p>
<p>Graduation Year: 2025</p>
</div>
<div class="section">
<h2>Experience</h2>
<h3>Company Name</h3>
<p>Position: software engineer</p>
<p>Date: January 2020 -
Present</p>
<ul>
<li>Responsibility 1</li>
<li>Responsibility 2</li>
<li>Responsibility 3</li>
</ul>
</div>
<div class="section">
<h2>Skills</h2>
<ul>
<li>Programming Languages: Java,
JavaScript, Python</li>
<li>Frameworks: React, Angular,
Django</li>
<li>Database: SQL</li>
</ul>
</div>
</body>
</html>
OUTPUT:
HTML CODE FOR INSURANCE
COMPANY
CODE:
OUTPUT:
HTML CODE FOR ONLINE SHOPPING FORM
CODE:
OUTPUT
:
FORM WITH HTML CODE
CODE:
OUTPUT
:
FRAME WITH HTML CODE
CODE:
<!DOCTYPE html>
<html>
<head>
<title>Frame tag</title>
</head>
<frameset cols="25%,50%,25%">
<frame src="FS.html" >
<frame src="WB2.html">
<frame src="NL.html">
</frameset>
</html>
OUTPUT:
STATIC
WEBSITE
CODE:
<html>
<CENTER>
<b>
<head>
MC D
</b>
<br>
<br>
<title>MC DONALDS</title>
</HEAD>
<img
src="C:\Users\Admin\Pictures\downlo
ad.png" height="450" width="450">
<body bgcolor="yellow">
<br>
<br>
<a href ="about.html">ABOUT US</a>
<a href ="contact.html">CONTACT US
</a>
<a href ="help.html">HELP</a>
<a href
="products.html">PRODUCTS</a>
<a href ="outlets.html">OUTLETS</a>
</center>
<p>McDonald's operates on a
franchise model, allowing independent
franchisees to manage and run most of
the restaurants. This approach ensures
local adaptation while maintaining
consistency in quality, service, and
branding. Through this business
model, McDonald's promotes
entrepreneurship and job creation in
local communities.
OUTPUT: