Web Tech
Web Tech
Greater Noida
Web Technologies
LAB
BCA-204
Submitted By - Submitted To -
1|Page
INDEX
2|Page
INTRODUCTION
HTML
Create a basic HTML file Hyper Text Markup Language is a set of logical codes
(markup) in parentheses that constitute the appearance of a web document and
the information it contains. It is a language for creating static web pages.
It specifies how the contents are to be presented on the web page. HTML is not a
case sensitive language so; HTML and html both are same.
HTML is a text document with formatting codes and this document has the
suffix “.html” or “.htm”.
This element contains two sub-elements, HEAD and BODY. These elements are
required to form any HTML document.
.
CSS
CSS stands for Cascading Style Sheets
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
External stylesheets are stored in CSS files
JavaScript
JavaScript is a lightweight, cross-platform, and interpreted scripting
language.
It is well-known for the development of web pages, many non-
browser environments also use it.
JavaScript can be used for Client-side developments as well as
Server-side developments.
3|Page
Ques 1 – Write a program to create your own page with favourite hobbies.
//Source code
<!DOCTYPE html>
<html lang="en">
<title>My Hobbies</title>
<meta charset="UTF-8">
<style>
.fa-anchor,.fa-coffee {font-size:200px}
</style>
<body>
4|Page
</header>
<div class="w3-content">
<div class="w3-twothird">
<h1><font Face ="arial " Size ="4" color =" #003399"><b>List Of Hobbies </font></b></h1>
<h5 class="w3-padding-32">
<ul>
<li> <font Face ="arial " Size ="4" color ="red"> Photography </font></li>
<li> <font Face ="arial " Size ="4" color ="red"> canvas painting </font> </li>
<li> <font Face ="arial " Size ="4" color ="red"> Collecting Art </font> </li>
<li> <font Face ="arial " Size ="4" color ="red"> Music Festivals </font> </li>
<li> <font Face ="arial " Size ="4" color ="red"> Cooking </font> </li>
<li> <font Face ="arial " Size ="4" color ="red"> Movies </font> </li>
</ul>
</h5>
</div>
</body>
</html>
5|Page
//Outputs
6|Page
Ques 2 – Write a program to design a webpage of Dairy Food Limited.
//Source code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
</style>
</head>
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@600&display=swap"
rel="stylesheet">
<style>
/* CSS Reset */
body {
/* color: white; */
margin: 0px;
padding: 0px;
7|Page
background-color:#F08080;
background-size: 100%;
.left {
color: black;
position: absolute;
left: 60px;
top: 20px;
display: inline-block;
.left div {
text-align: center;
line-height: 45px;
font-size: 25px;
.mid {
display: block;
width: 36%;
8|Page
}
.right {
position: absolute;
right: 34px;
top: 35px;
display: inline-block;
.navbar {
display: inline-block;
.navbar li {
display: inline-block;
font-size: 27px;
.navbar li a {
color: black;
text-decoration: none;
text-decoration: underline;
color: grey;
9|Page
}
.center {
display: block;
margin-right: auto;
margin-left: auto;
width: 100px;
.btn {
background-color: black;
color: white;
border-radius: 10px;
font-size: 20px;
cursor: pointer;
.btn:hover {
.container {
padding: 60px;
10 | P a g e
width: 30%;
border-radius: 25px;
.container h1 {
text-align: center;
.form-group input {
text-align: center;
display: block;
width: 450px;
padding: 1px;
font-size: 25px;
border-radius: 10px;
.container button {
display: block;
width: 75%;
</style>
<body>
<header class="header"></header>
11 | P a g e
<!-- Left box for logo -->
<div class="left">
<!-- use filter: inver() function to convert an image from black to white colour and from white to
black colour -->
</div>
<div class="mid">
<ul class="navbar">
<li><a href="#">REVIEWS</a></li>
</ul>
</div>
<div class="container">
<form action="noaction.php"></form>
<div class="form-group">
</div>
<div class="form-group">
</div>
12 | P a g e
<div class="form-group">
</div>
<button class="btn">SUBMIT</button>
</div>
</body>
</html>
//Output
13 | P a g e
Ques 3 – Write a program to Create a Menu or a Table of Content Page. Each Menu item
should load a different web page.
//Source code
Index.html
<!DOCTYPE html>
<html>
<head>
scale=1.0">
<title>Experiment 3</title>
</head>
<body>
<section class="header">
<nav>
<div class="nav-links">
<ul>
</ul>
14 | P a g e
</div>
</nav>
<div class="text-box">
<p>Welcome to the first blog post! My name is Jhanvi Pathak of DTC! and I am so excited to share
with you MORE of what BRSS has to offer! The amount of ideas, how-to’s and inspiration whirling
around in my head is ready to jump out. I wanted to start by telling you why I created this blog, what
you will be seeing more of in my posts, and my overall experience of revamping my website.
</p>
</div>
</div>
Latest News.html
<!DOCTYPE html>
<html>
<head>
scale=1.0">
<title>Experiment 3</title>
<style>
img {
display: block;
margin-left: auto;
15 | P a g e
margin-right: auto;
</style>
</head>
<body>
<section class="header">
<nav>
<div class="nav-links">
<ul>
</ul>
</div>
</nav>
<hl>Leave Policy</hl>
<p>
a. The Employee is entitled to ____ (___) days of paid casual leaves in a year and ____(___)
days of sick leave. In addition, the Employee will be entitled to _____ (__)public holidays mentioned
under the Leave Policy of the Employer.
b. The Employee may not carry forward or encash any holiday to the next holiday year.
16 | P a g e
c. In the event that the Employee is absent from work due to sickness or injury, he/she will
follow the Leave Policy and inform the designated person as soon as p
</p>
</div>
</section>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
scale=1.0">
<title>Experiment 3</title>
<style>
img {
display: block;
margin-left: auto;
margin-right: auto;
17 | P a g e
}
</style>
</head>
<body>
<section class="header">
<nav>
<div class="nav-links">
<ul>
</ul>
</div>
</nav>
<h1><br></h1>
<h1><br></h1>
<h1><br></h1>
<hl>Leave Policy</hl>
<p><br></p>
<p>a. The Employee is entitled to days of paid casual leaves in a year and days of sick leave. In
addition, the Employee will be entitled to public holidays mentioned under the Leave Policy of the
Employer.
18 | P a g e
<br>
b. The Employee may not carry forward or encash any holiday to the next holiday year.
<br>
c. In the event that the Employee is absent from work due to sickness or injury, he/she will
follow the Leave Policy and inform the designated person as soon as ps</p>
<p><br></p>
<p><br></p>
<p>
Leave Policy</p>
<p>
a. The Employee is entitled to days of paid casual leaves in a year and days of sick leave. In
addition, the Employee will be entitled to public holidays mentioned under the Leave Policy of the
Employer.
b. The Employee may not carry forward or encash any holiday to the next holiday year.
c. In the event that the Employee is absent from work due to sickness or injury, he/she will
follow the Leave Policy and inform the designated person as soon as p
10. Confidentiality
a. The Employee acknowledges that, in the course of performing and fulfilling his duties
hereunder, he may have access to and be entrusted with confidential information concerning the
present and contemplated financial status and activities of the Employer, the disclosure of any of
which confidential information to the competitors of the Employer would be highly detrimental to
the interests of the Employer.
</p>
</div>
19 | P a g e
//Output
20 | P a g e
Ques 4– Write a program to create a webpage using ordered and unordered lists
//Source code
<!DOCTYPE html>
<html lang="en">
<title>Experiment</title>
<meta charset="UTF-8">
<style>
.fa-anchor,.fa-coffee {font-size:200px}
</style>
<body>
</header>
21 | P a g e
<!-- First Grid -->
<div class="w3-content">
<div class="w3-twothird">
<h2>Unordered List</h2>
<h5 class="w3-padding-32">
<ul>
<li> <font Face ="Georgia (serif)l " Size ="4" color ="blue"> Broccoli </font> </li>
<li><font Face ="Georgia (serif)l " Size ="4" color ="blue"> Apples </font> </li>
<li><font Face ="Georgia (serif)l " Size ="4" color ="blue"> Wheat germ is high in several
vital nutrients </font></li>
<li><font Face ="Georgia (serif)l " Size ="4" color ="blue"> Sweet potatoes </font></li>
</ul>
</h5>
</div>
<h2>Ordered List</h2>
<h5 class="w3-padding-32">
<ol>
<li> <font Face ="Georgia (serif)l " Size ="4" color ="#FF5733"> Sugar </font> </li>
22 | P a g e
<li> <font Face ="Georgia (serif)l " Size ="4" color ="#FF5733"> caffeine </font> </li>
<li> <font Face ="Georgia (serif)l " Size ="4" color ="#FF5733"> Soft drinks </font> </li>
<li> <font Face ="Georgia (serif)l " Size ="4" color ="#FF5733"> Salt </font> </li>
</ol>
</h5>
</div>
</div>
</div>
</body>
</html>
//Output
Ques 5 – Write a program to create a to show record of the college in the form of a Table
//Source code
23 | P a g e
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css">
<style>
.fa-anchor,.fa-coffee {font-size:200px}
h1 {text-align: center;}
table
border-collapse: collapse;
width: 90%;
24 | P a g e
table.center
margin-left: auto;
margin-right: auto;
td, th
text-align: left;
padding: 8px;
background-color: #FFA07A;
</style>
<body>
</header>
<h1><U><b>CLASS RECORD</b></U></h1>
<table class="center">
<tr>
25 | P a g e
<th>S NO.</th>
<th>SUBJECT CODE</th>
<th>SUBJECT NAME</th>
</tr>
<tr>
<td>1.</td>
<td>BCA 202</td>
<td>Mathematics – IV</td>
<td>ABC</td>
</tr>
<tr>
<td>2.</td>
<td>BCA 204</td>
<td>Web Technologies</td>
<td>ABC</td>
</tr>
<tr>
<td>3.</td>
<td>BCA 206</td>
<td>Java Programming</td>
<td>ABC</td>
</tr>
26 | P a g e
<tr>
<td>4.</td>
<td>BCA 208</td>
<td>Software Engineering</td>
<td>ABC</td>
</tr>
<tr>
<td>5.</td>
<td>BCA 210</td>
<td>Computer Networks</td>
<td>ABC</td>
</tr>
</table>
</body>
</html>
//Output
27 | P a g e
28 | P a g e
Ques 6 – Write a program to Create a Frameset divided into 3 sections
//Source code
Frameset.html
<!DOCTYPE html>
<html>
<head>
<title>Experiment</title>
</head>
<frameset cols="33%,33%,33%">
</frameset>
</html>
Index.html
LatestNews.html
29 | P a g e
TermsandConditions.html
//Output
30 | P a g e
Ques 7 – Write a program to create a webpage which displays your County, City and State
//Source code
<!DOCTYPE html>
<html lang="en">
<title>Experiment</title>
<meta charset="UTF-8">
<style>
.fa-anchor,.fa-coffee {font-size:200px}
</style>
<style>
.dropbtn {
background-color: #96D4D4;
color: blue;
padding: 16px;
font-size: 16px;
31 | P a g e
border: none;
.dropdown {
position: relative;
display: inline-block;
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
z-index: 1;
.dropdown-content a {
color: black;
text-decoration: none;
display: block;
32 | P a g e
</style>
<body>
<center>
</header>
<h2>*All Mandatory</h2>
<div class="dropdown">
<div class="dropdown-content">
<a href="#">India</a>
<a href="#">Australia</a>
<a href="#">America</a>
</div>
</div>
<div class="dropdown">
<div class="dropdown-content">
33 | P a g e
<a href="#">Gujarat</a>
</div>
</div>
<div class="dropdown">
<div class="dropdown-content">
<a href="#">Noida</a>
<a href="#">Banglore</a>
<a href="#">Jaipur</a>
</div>
</div>
</div>
</div>
</center>
</body>
</html>
//Output
34 | P a g e
35 | P a g e
Ques 8– Write a program to create a Calculator using JavaScript
//Source code
<!DOCTYPE html>
<html lang="en">
<title>Experiment</title>
<meta charset="UTF-8">
<body bgcolor="#FFA07A">
<center>
<h1><b><i><u>CALCULATOR</u></i></b></h1>
</header>
<h5>
<FORM NAME="Calc">
<TABLE BORDER=6>
<TR>
<TD>
<br>
</TD>
</TR>
36 | P a g e
<TR>
<TD>
<br>
<br>
37 | P a g e
<br>
<br>
</TD>
</TR>
</TABLE>
</FORM>
</h5>
</div>
</div>
</center>
</body>
</html>
//Output
38 | P a g e
39 | P a g e
Ques 9 – Write a program to design a simple html form
//Source code
<!doctype html>
<Html>
<head>
</head>
<body bgcolor="#CCCCFF">
<hr>
<hr>
<hr>
<hr>
<form>
<label>
Course :
</label>
<select>
<option value="Course">Course</option>
40 | P a g e
<option value="BCA">BCA</option>
<option value="BBA">BBA</option>
<option value="MBA">MBA</option>
<option value="MCA">MCA</option>
</select>
<br>
<label>
Gender :
</label><br>
<label>
Phone :
</label>
Address
<br>
</textarea>
<br> <br>
Email:
<br>
41 | P a g e
Password:
<br>
<hr>
<hr>
</form>
</body>
</html>
//Output
42 | P a g e