WDW Lab Manual - 2024-25
WDW Lab Manual - 2024-25
5thKM Stone Delhi, Meerut Road, Near Raj Nagar Extension Road, Ghaziabad, UP-201017
Approved by AICTE, N. Delhi & Affiliated to Dr. A. P. J. Abdul KalamTechnical University, Lucknow
NBA Accredited Program (B.Tech - ECE, IT) &B.Pharma
LABORATORY MANUAL
To be recognized globally for delivering high quality education in the ever changing field of
computer science & engineering, both of value & relevance to the communities we serve.
PEO 2: Employable: To develop the ability among students to synthesize data and
technical concepts for application to software product design for successful careers
that meet the needs of Indian and multinational companies.
PEO 3: Innovative: To develop research oriented analytical ability among students to
prepare them for making technical contribution to the society.
PO2: Problem analysis: Identify, formulate, review research literature, and analyze
complex engineering problems reaching substantiated conclusions using first principles
of mathematics, natural sciences, and engineering sciences.
PO5: Modern tool usage: Create, select and apply appropriate techniques, resources, a n
d modern engineering and IT tools including prediction and modeling to complex
engineering activities with an understanding of the limitations.
PO6: The engineer and society: Apply reasoning informed by the contextual knowledge
to assess societal, health, safety, legal and cultural issues and the consequent
responsibilities relevant to the professional engineering practice.
PO9: Individual and team work: Function effectively as an individual, and as a member or
leader in diverse teams, and in multidisciplinary settings.
PO12: Life-long learning: Recognize the need for and have the preparation and ability to
engage in independent and life-long learning in the broadest context of technological change.
PSO2: The ability to employ latest computer languages and platforms in creating innovative
career opportunities.
C208.2 To apply the integration of CSS in html pages to format and make Web pages
attractive.
C208.3 Apply the JS concept to process and validate the data of web page on client
Machine.
C208.4 Design the website by interlinking a number of web pages with the application of
html CSS and JavaScript.
CO-PO MAPPING
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
C208.1 3 3 3 3 3 1 1 1 1 1 2 3
C208.2 3 3 3 3 3 1 1 1 1 1 2 3
C208.3 3 3 3 3 3 1 1 1 1 1 2 3
C208.4 3 3 3 3 3 1 1 1 1 1 2 3
C208
3 3 3 3 3 1 1 1 1 1 2 3
CO-PSO MAPPING
PSO1 PSO2
C208.1 3 3
C208.2 3 3
C208.3 3 3
C208.4 3 3
C208
3 3
LIST OF EXPERIMENTS
1 Design the following static web pages required for an online book store
website.
HOMEPAGE:
Top frame: Logo and the college name and links to Homepage, Login page,
Registration page, Catalogue page and Cart page (the description of these
pages will be given below).
For example: When you click the link “CSE” the catalogue for CSE Books
should be displayed in the Right frame. Right frame: The pages to the links in
the left frame must be loaded here. Initially this
CSE
ECE Description of the WebSite
EEE
CIVIL
2. LOGINPAGE:
CSE
ECE Login Page User Name:
EEE Passwords:
CIVIL
Submit
Reset
3. CATOLOGUE PAGE: The catalogue page should contain the details of all the books available in the
website in a table. The details should contain the following:
2. Author Name.
3. Publisher.
4. Price.
Book:XMLBible
Publication:Wiely $40.5
ECE
4. CARTPAGE: The cart page contains the details about the books which are added to the cart. The cart
page should look like this:
6. JS VALIDATION: Write JavaScript to validate the following fields of the above registration page.
1. Name (Name should contains alphabets and the length should not be less than 6
characters).
2. Password (Password should not be less than 6 characters length).
7. JS VALIDATION:
3. E-mail-id (should not contain any invalid and must follow the standard
pattern([email protected])
4. Phone Number (Phone number should contain 10 digits only).
8. CSS: Design a web page using CSS (Cascading Style Sheets) which includes the following:
2) Set a background image for both the page and single elements on the page.
9. CSS:
10 Consider a small topic of your choice on which you can develop static Web pages and try to
. implement all topics of html, CSS and JS within the topic.
INTRODUCTION
Web development workshop is a collective name for technology primarily for the World Wide Web.
This does; however, tend to focus more specifically towards technology that aides in the creation,
maintenance and development of web-based applications.
From a developer’s point of view, these are things like languages and frameworks, data storage
mechanisms, services and products to allow us to create platforms and applications for the web.
Bootstrap and JS along with HTML, CSS for web development that allows a developer to build
websites.
You can find web frameworks for Java, Python and a few other languages so that developers can use
a whole array of technologies, rather than being pinned down to one. These are known as server-side
technologies which lives and runs on a server somewhere.
On the other side, you have client-side web technologies, which include things like HTML, CSS,
JavaScript (which includes JavaScript Frameworks like jQuery, Angular and React). These execute
run from the web page that a user loads, but actually run on the users (clients) computer.
However, web technology is not limited to the developers. Web browsers, for example, are in the
category of web technology as it is technology that allows a user to access the web. FTP may also be
considered a web technology as it is designed to send files over the Internet.
I wouldn't, however, consider a VPN as web technology as a VPN is a networking technology that sends
network traffic over the Internet without actually interacting with the “world wide web” itself.
PREFACE
We have come a long way—Web Style Guide and the World Wide Web. The first version of Web
Style Guide was a web site called the Yale claim Web Style Guide posted in 1993, just as the world
outside computing and academia began to notice the new medium and the Internet in general. The
early web was sorely lacking in aesthetics but exploding with potential. Web Style Guide provided
much-needed guidance on structure and design based on several decades‟ worth of experience with
print, hypermedia, and multimedia design and authoring.
In 1997 we updated the Web Style Guide site to reflect the maturing design trends and changes in
web technology. In the web a novel landscape opened up, like a new continent rising from the sea,
ready for explorers and builders. People from the arts, publishing, and dozens of computing
disciplines poured in, enriching the web and pushing out the boundaries of what might be possible
while bringing the wealth of centuries of media and design culture along with them. The web
changed to accommodate these new settlers, whose expectations for what could be achieved in the
web environment often outstripped its capabilities. This was a time of significant progress in visual
design and interface sophistication, but at the cost of standardization and accessibility.
In 1999 we produced the first print edition of Web Style Guide. People with little or no background
in design were assigned the responsibility for web site development, and they looked to Web Style
Guide for calm, reassuring, and practical guidance. For many, the slim and straightforward Web
Style Guide was a welcome relief from the esoteric, hyperactive, and voluminous books that lined
the shelves in the Web Design section of their bookstores.
Since its inception as a web site in 1993 and into this third edition, Web Style Guide has presented
solid design advice based on classic design principles, acknowledging the possibilities and
WDW LAB (BCS353) MANUAL (CSE, III SEM) Page 11
Raj Kumar Goel Institute of Technology, Ghaziabad Department of Computer Science &
Engineering
limitations of current web technology while trying not to let the media confetti overwhelm good
sense and an information- oriented aesthetic. Thanks to enormous advances in html, Cascading
Style Sheets, and the “web standards” philosophy for building sites, this edition does not contain
sections on cross-platform issues or special techniques for making web sites accessible to people
with disabilities.
In this third edition of Web Style Guide, and the nineteenth year of the World Wide Web, we
celebrate how far we have come and how much we can do to make the web accessible to and
usable by everyone.
DO’s
1. Conform to the academic discipline of the department.
3. Read and understand how to carry out an activity thoroughly before coming to the laboratory.
4. Ensure the uniqueness with respect to the methodology adopted for carrying out the
experiments.
5. Shut down the machine once you are done using it.
DONT’S
5. Do not touch, connect or disconnect any plug or cable without your faculty/laboratory
technician’s permission.
1. Know the location of the fire extinguisher and the first aid box and how to use them
in case of an emergency.
4. Do not plug in external devices without scanning them for computer viruses.
While preparing the lab records, the student is required to adhere to the following guidelines:
1. Cover page
2. Vision
3. Mission
4. PEOs
5. POs
6. PSOs
7. COs
8. CO-PO-PSO mapping
WDW LAB (BCS353) MANUAL (CSE, III SEM) Page 14
Raj Kumar Goel Institute of Technology, Ghaziabad Department of Computer Science &
Engineering
9. Index
10. Experiments
Aim
Source code
Input-Output
The student is required to make the Lab File as per the format given on the next two pages.
Name
Roll No.
Section- Batch
INDEX
Experiment Experiment Date of Date of Faculty
No. Name Conduction Submission Signature
Students are provided with the details of the experiment (Aim, pre-experimental
questions, procedure etc.) to be conducted in next lab and are expected to come prepared
for each lab class.
Faculty ensures that students have completed the required pre-experiment questions and
they complete the in-lab programming assignment(s) before the end of class. Given that
the lab programs are meant to be formative in nature, students can ask faculty for help
before and during the lab class.
Students‟ performance will be assessed in each lab based on the following Lab
Assessment Components:
In each lab class, students will be awarded marks out of 5 under each component head,
making it total out of 15 marks.
EXPERIMENT – 1
Aim: - Design the following static web pages required for an online book store website.
HOMEPAGE:
Top frame: Logo and the college name and links to Homepage, Login page, Registration page,
Catalogue page and Cart page.
Code: -Homepage
<head>
<frameset rows="20%,*">
<frame src="topframe.html"name="f1">
<frameset cols="20%,*">
<frame src="leftframe.html"name="f2">
<frame src="rightframe.html"name="f3">
</frameset>
</frameset>
</head>
OUTPUT:
Top frame:
<html>
<body>
<p>
<img src="C:\Documents and Settings\All Users\Documents\My Pictures\Sample
Pictures\Winter.jpg" align=left width=100 height=100">
<h1 align=center>Online book store</h1>
</p>
<br>
<p>
<h2> nbsp;
<a href="homepage.html" target=_parent> Home
</a>
<a href="login.html" target="f3"> login
</a>
<a href="registration.html" target="f3"> registration
</a> nbsp;
<a href="catalogue.html" target="f3"> Catalogue
</a>
<a href="cart.html" target="f3"> Cart
</a>
</h2>
</p>
</body>
</html>
Output
Left frame:
<html>
<body>
</body>
</html>
Output
Right frame:
<html>
<body bgcolor="pink">
<p>
<h2 align="center"> <font face="times new roman" color="green" >Online book store information </font>
</h2>
<h3> <font face="monotype corsiva" color=blue> This is the online book
store developed by students of pvpsit.It contains book catalogue of various branches like cse,ece,eee,civil
</font></h3>
</p>
</body>
</html>
Output
Experiment No.2
Aim: - Login Page: The login page contains the user name and the password
of the user to authenticate.
Code:
<html>
<body>
<p>
</p>
<br>
<p>
<h2> nbsp;
</a>
</a>
</a> nbsp;
</a>
</a>
</h2>
</p>
</body>
</html>
OUTPUT:
Experiment No.3
Aim: - CATOLOGUE PAGE: The catalogue page should contain the details of all the books
available in the website in a table. The details should contain the following:
Code: -
<html>
<body>
<center>
<table border=1>
<tr>
<th> Book Preview </th>
<th> Book Details </th>
<th> Price </th>
<th> Payment </th>
</tr>
<tr>
<td> <img src="image.jpg" width=100 height=50>
</td>
<td>
<pre>
<font face="comic sans ms" size=4 color="green" > book:XML Bible Author:winston
Publisher:Wiesley
</font>
</pre>
</td>
<td> $40 </td>
<td> <a href="cart.html" target="_blank">
<img src="C:\Users\kivi2\Downloads\1234.png" width="150" height="100">
</a>
WDW LAB (BCS353) MANUAL (CSE, III SEM) Page 26
Raj Kumar Goel Institute of Technology, Ghaziabad Department of Computer Science &
Engineering
</td>
</tr>
<tr>
Output
Experiment No. 4
Aim: - The cart page contains the details about the books which are added to the cart.
<body>
<center><br><br><br>
<img src=”E:\aa.jpg”>
<thead>
<tr>
<th>Book name</th>
<th>price</th>
<th>quantity</th>
<th>amount</th>
</tr>
</thead>
<tr>
<td>java 2</td>
<td>$45</td>
<td>2</td>
<td>$70</td>
</tr>
<tr>
<td> $20</td>
<td> 5</td>
<td> $40</td>
</tr>
</th>
</tr>
</table>
</center>
</body>
</html>
OUTPUT:
Experiment No. 5
Aim: - REGISTRATION PAGE: Create a ‘’registration form’’ with the following fields
Code: -
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Registration Form</title>
</head>
<body>
<h1>Registration Form</h1>
<label for="name">Name:</label>
<label for="password">Password:</label>
<label for="email">E-mail:</label>
<label>Sex:</label>
<label for="male">Male</label>
<label for="female">Female</label>
<label for="other">Other</label><br><br>
<option value="">Day</option>
</select>
<option value="">Month</option>
</select>
<option value="">Year</option>
</select><br><br>
<label>Languages known:</label>
<label for="english">English</label>
WDW LAB (BCS353) MANUAL (CSE, III SEM) Page 31
Raj Kumar Goel Institute of Technology, Ghaziabad Department of Computer Science &
Engineering
<label for="telugu">Telugu</label>
<label for="hindi">Hindi</label>
<label for="tamil">Tamil</label><br><br>
<label for="address">Address:</label><br>
</form>
</body>
</html>
Output: -
Experiment No. 6
Aim: - JS VALIDATION: Write JavaScript to validate the following fields of the
above registration page.
1.Name (Name should contains alphabets and the length should not be less than 6
characters).
Code: -
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Page</title>
<script> function validateForm() {
// Name validation
var name = document.getElementById("name").value; if (!/^[a-zA-Z]
{6,}$/.test(name)) {
alert("Name should contain alphabets only and have at least 6 characters."); return
false;
}
// Password validation
var password = document.getElementById("password").value; if (password.length
< 6) {
alert ("Password should be at least 6 characters long.");
return false;
}// Form is valid
return true;
}
</script>
</head>
<body>
<h1>Registration Page</h1>
<form onsubmit="return validateForm()">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br><br>
<input type="submit" value="Register">
</form>
</body>
</html>
Output: -
Experiment No. 7
Aim: - JS VALIDATION:
1. E-mail-id (should not contain any invalid and must follow the standard
pattern([email protected])
2. Phone Number (Phone number should contain 10 digits only).
Code: -
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Form Validation</title>
<style>
</style>
</head>
<body>
<h1>Form Validation</h1>
<label for="email">E-mail:</label>
</form>
<script>
function validateForm() {
if (!emailPattern.test(emailInput)) {
if (!phonePattern.test(phoneInput)) {
alert("Invalid phone number. Please enter a 10-digit phone number."); return false;
</script>
</body>
</html>
Output: -
Experiment No. 8
Aim: - CSS: Design a web page using CSS (Cascading Style Sheets) which includes the following:
In the style definition you define how each selector should work (font, color etc.). Then, in the body of
your pages, you refer to these selectors to activate the styles.
Set a background image for both the page and single elements on the page.
Code: -
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
color: #333;
h1 {
color: #009688;
p{
line-height: 1.5;
background-repeat: no-repeat;
.highlight-box {
background-image: url('highlight-background.jpg');
</style>
</head>
<body>
<p>This is an example of a web page styled using CSS. You can use different fonts and set background
images for elements on the page.</p>
<div class="highlight-box">
<h2>Highlighted Section</h2>
<p>This section has a custom background image set using CSS. You can apply various styles to make
your content stand out.</p>
</div>
<p>Feel free to explore and experiment with different styles and backgrounds for your web pages!</p>
</body>
</html>
Output: -
Experiment No. 9
Aim: - CSS:
Control the repetition of the image with the background-repeat property.
Code: -
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
background-image: url('image.jpg');
a:visited {
a:active {
a:hover {
.container {
h1 {
color: #333;
p{
color: #666;
</style>
</head>
<body>
<div class="container">
<h1>Welcome to My CSS Page</h1>
<p>This is an example of a web page styled using CSS. You can control the repetition of background images and
define styles for links.</p>
<p>Feel free to <a href="#">explore</a> and <a href="#">click</a> on the links to see how they change on
interaction</p>
</div>
</body>
</html>
Output: -
Experiment No. 10
Aim: - Consider a small topic of your choice on which you can develop static Web pages and
try to implement all topics of html, CSS and JS within the topic.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Survey Form</title>
padding: 0;
header {
.container {
border-radius: 5px;
h1 {
color: #333;
text-align: center;
label {
select {
.btn {
.btn:hover {
background-color: #2187c0;
/* JavaScript Validation */
.error {
</style>
</head>
<body>
<header>
<h1>Survey Form</h1>
</header>
<div class="container">
<label for="name">Name:</label>
<label for="email">Email:</label>
<label for="age">Age:</label>
<option value="18-30">18-30</option>
<option value="31-50">31-50</option>
</select>
<label for="comments">Comments:</label>
</form>
</div>
<script>
if (name.trim() === '' || email.trim() === '') { e.preventDefault(); // Prevent form submission
});
</script>
</body>
</html>
Output: -