Kush Web
Kush Web
Practical
FileOn
Web Designing Lab
(BCA-307)
Index
4. Add the links in the webpage for, Play an Audio file, play a
Video file, Download an Audio file Write a program to
implement linear search.
1
Web Designing Lab(BCA-307) 1323186
PRACTICAL-1
Ques. Create a web page depicting your resume using basic HTML tags and list tags.
SOLUTION:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1><b><u>PROFILE</u></b></h1>
<b>Krishan</b>
<br>
<b>Computer application student.</b>
<br>
<b>I consider myself a responsible and orderly person.</b>
<br>
<b>I am looking forward for some word that enhances my skills and knowledge.</b>
<h2><b><u>CONTACT ME</u></b></h2>
<b>📞+91 8607xxxxxx</b>
<br>
<b>✉[email protected]</b>
<br>
<b>LOCATION: 1846 vishnu colony, Kurukshetra </b>
<ul>
<li><b>EDUCATION</b></li>
</ul>
<b>MAHARISHI MARKANDESHWAR(DEEMED TO BE)UNIVERSITY</b>
<br>
<b>mullana-ambala</b>
<br>
2
Web Designing Lab(BCA-307) 1323186
3
Web Designing Lab(BCA-307) 1323186
OUTPUT:
4
Web Designing Lab(BCA-307) 1323186
PRACTICAL-2
Ques. Create a format divided into 3 sections.
Solution:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div>
<h1>Section 1</h1>
<p>This is a content for sec1</p>
</div>
<hr>
<div>
<h1>Section 2</h1>
<p>This is a content for sec2</p>
</div>
<hr>
<div>
<h1>Section 3</h1>
<p>This is a content for sec3</p>
</div>
<hr>
</body>
</html>
5
Web Designing Lab(BCA-307) 1323186
OUTPUT:
6
Web Designing Lab(BCA-307) 1323186
PRACTICAL-3
Ques. Write HTML code using nested list.
SOLUTION:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>
CODE FOR NESTED LIST...
</h1>
<ul>
<li>
science
<ul>
<li>
biology
</li>
<li>
chemistry
</li>
<li>
physics
</li>
</ul>
</li>
</ul>
<ul>
7
Web Designing Lab(BCA-307) 1323186
<li>
Social science
<ul>
<li>history</li>
<li>
civics
</li>
<li>
geography
</li>
<li>
economics
</li>
</ul>
</li>
</ul>
</body>
</html>
OUTPUT:
8
Web Designing Lab(BCA-307) 1323186
PRACTICAL-4
Ques. Add the links in the webpage for Play an audio file, play a video file, download an
audio file.
SOLUTION:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Media Links</title>
</head>
<body>
<h1>Media Links</h1>
9
Web Designing Lab(BCA-307) 1323186
OUTPUT:
10
Web Designing Lab(BCA-307) 1323186
Practical-5
1. Create a Menu or Table of Contents webpage. Each menu item should
load a different webpage.
Sol:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Table of Contents</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f9f9f9;
}
h1 {
text-align: center;
}
.menu {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: white;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin: 10px 0;
}
a{
text-decoration: none;
11
Web Designing Lab(BCA-307) 1323186
color: #007BFF;
font-size: 18px;
padding: 10px;
display: block;
background-color: #f1f1f1;
border-radius: 5px;
transition: background-color 0.3s ease;
}
a:hover {
background-color: #007BFF;
color: white;
}
</style>
</head>
<body>
<h1>Table of Contents</h1>
<div class="menu">
<ul>
<li><a href="page1.html">Introduction to HTML</a></li>
<li><a href="page2.html">CSS Styling Guide</a></li>
<li><a href="page3.html">JavaScript Basics</a></li>
<li><a href="page4.html">Responsive Web Design</a></li>
<li><a href="page5.html">Web Development Tools</a></li>
</ul>
</div>
</body>
</html>
OUTPUT:-
12