Web Development Lab File-3
Web Development Lab File-3
1 EXPERIMENT 1
● Introduction to HTML
2 EXPERIMENT 2
● Write HTML Code to Create Different
tags in the Web Page.
3 EXPERIMENT 3
4 EXPERIMENT 4
● Design a page having suitable
background colour and text colour
with title “My First Web Page” using
all the attributes of the Font tag.
5 EXPERIMENT 5
● Create a HTML document giving
details of your [Name, Age],
[Address, Phone] and [Register
Number, Class] aligned in proper order
using alignment attributes of Paragraph
tag.
6 EXPERIMENT 6
● Write HTML code to create a Web
Page that contains an Image at its
centre.
7 EXPERIMENT 7
● Create web Pages using Anchor
tag with its attributes for
external links.
8 EXPERIMENT 8
● Write a HTML code to create a
web page with yellow colour
background and display
moving message in green
colour.
9 EXPERIMENT 9
Create a web page,
showing an ordered list of
all second semester
courses(Subjects).
10 EXPERIMENT 10
Create a web page which
should generate following
output.
CODE OF ETHICS
DO’s
● Students must use the computer lab for academic related activities
● Students must keep their work area clean and orderly.
● Students must properly reference all material found on the Internet.
● Students must regularly clean their systems by cleaning unnecessary data.
● Always shut down the system after use.
DON’T’s
● Do not eat or drink in the laboratory.
● Do not remove anything from the computer laboratory without permission.
● Do not touch, connect or disconnect any cable without your lab technician’s
permission.
● Do not misbehave in the computer laboratory.
● Do not insert metal objects such as clips, pins and needles into the computer
EXPERIMENT -1
INTRODUCTION TO HTML
Web site: A set of interconnected web pages, usually including a homepage,
generally located on the same server, and prepared and maintained as a collection
of information by a person, group, or organization.
Web Page: A web page is a document that's created in html that shows up on
the internet when you type in or go to the web page's address.
Types of Web Pages:
Static web page: is delivered exactly as stored, as web content in the
web server's file system. Contents cannot be changed.
Dynamic web page: is generated by a web application that is driven by
server-side software or client-side scripting. Dynamic web pages help the
browser (the client) to enhance the web page through user input to the
server. Contents can be changed as evolution over time.
Browsers & their types
A web browser (commonly referred to as a browser) is a software application
for retrieving, presenting and traversing information resources on the World Wide
Web.
The major web browsers are Google Chrome, Firefox, Internet Explorer, Opera, and Safari.
URL: A uniform resource locator (URL), also known as web address, is a specific character
string that constitutes a reference to a resource. In most web browsers, the URL of a web
page is displayed on top inside an address bar. An example of a typical URL would be
"http://en.example.org/wiki/Main_Page".
WWW: The World Wide Web (WWW) is a system of interlinked hypertext documents
accessed via the Internet. With a web browser, one can view web pages that may contain text,
images, videos, and other multimedia, and navigate between them via hyperlinks.
Procedure:
1. Go to start ->all program – >accessories-> notepad.
2. Type the html code.
3. Go to file->save->save the file with html extension.
4. Run the html code using browser.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title of the document</title>
</head>
<body>
<h1>This is a heading</h1>
<h1>HTML WEB PAGE</h1>
<p>This is a paragraph.</p>
</body>
</html>
*******output***************
EXPERIMENT -3
Write HTML Code to Create Different Size Heading in the Web Page.
Procedure:
1. Go to start ->all program – >accessories-> notepad.
<html>
<head>
<title>program 09</title>
<body>
<h1>This is heading h1</h1>
<h2>This is heading h2</h2>
<h3>This is heading h3</h3>
<h4>This is heading h4</h4>
<h5>This is heading h5</h5>
<h6>This is heading h6</h6>
</body>
</head>
</html>
*******output***************
EXPERIMENT -4
3) Design a page having suitable background colour and text colour with title
“My First
Web Page” using all the attributes of the Font tag.
Procedure:
1. Go to start ->all program – >accessories-> notepad.
4. Set the background for the webpage by using bgcolor attributes of the body tag.
<html >
<head>
</head>
<body bgcolor="green">
</body>
</html>
*******output***************
EXPERIMENT -5
<html>
<head>
<title>program 02</title>
</head>
<body>
<p align="center">
Name: AITS<br>
Age: 16
</p>
<p align="right">
Address: Aghraharam post TIRUPATI<br> Phone:
123535615
</p>
<p align="left">
Reg No:
20AK1A0501<br>
Class:2nd Sem C’s
</p>
</body>
</html
*******output***************
EXPERIMENT-6
Write HTML code to create a Web Page that contains an Image at its centre.
Procedure:
3. Include <img> tag inside <center> tag and set align attribute of img tag to middle
<html>
<head>
<title>program 03</title>
</head>
<body>
<center>
<img src="C:/Users/harsh70leza3/Documents/image.jpg " height="200"
width="200" align="middle"/>
</center>
</body>
</html>
*******output***************
EXPERIMENT-7
Create web Pages using Anchor tag with its attributes for external
links.
Procedure:
1. Go to start->all programs->accessories->notepad.
3. To provide external link between p1.html and gmail website use <a> in p1.html and mention
P1.html
<html>
<head><title>page 1</title>
</head>
<body>
<p>Welcome to AITS</p>
<a href="http://www.gmail.com">click here to open gmail website</a>
</body>
</html>
*******output***************
*******output***************
EXPERIMENT-8
Write a HTML code to create a web page with yellow colour background and
display moving message in green colour.
Procedure:
1. Go to start->all programs->accessories->notepad
4. Use font tag to display moving text in green color by setting color=”green” attribute
<html>
<head>
<title>program 09</title>
</head>
<body bgcolor=" yellow">
<font color="green"><marquee direction="right">
<h1><b>Welcome to DPG DEGREE COLLEGE </b></h1> </marquee></font>
</body>
</html>
*******output***************
EXPERIMENT-9
Create a web page, showing an ordered list of all second semester
courses(Subjects).
Procudure:
1. Go to start->all programs->accessories->notepad
3. Use <ol> ---- </ol> tag to display ordered list of all subject
<html>
<head>
<title>program 09</title>
</head>
<body>
<ol><b>
<li>English </li>
<li>Maths-2</li>
<li>Digital Electronics & computer
fundamentals</li> <li>Basic Web design lab</li>
<li>multimedia lab</li>
<li>digital electronics</li>
</b>
</ol>
</body>
</html>
*******output***************
EXPERIMENT-10
Procedure:
3. Use<frameset> tag to divide the webpage into 2 equal frames by setting cols =”*,*”
attribute
5 .Again divide the second frame into 2 equal rows using rows=”50%,50%” in
<html>
<frameset cols="*,*">
<frame src=" path or location of your image" name="left">
<frameset rows="50%,50%">
<frame src=" path or location of your image" name="topright">
<frame src=" path or location of your image" name="topbuttom">
</frameset>
</frameset>
</html>
*******output***************