BCA Semester WT PRACTICAL FILE
BCA Semester WT PRACTICAL FILE
Submitted By Submitted To
Name of Student: JASMEHAR SINGH Dr. Krishna
Enrollment Number: 03424002024 Associate Professor
Semester: 1th CS & IT
Shift: 2st
1|Page
1) Make following five different web pages
i) Formatting Styles and Headings: Include Bold, italics, Underline, Strike, Subscript,
superscript and all six type of headings:-
<html >
<head>
<title>Text Formatting Example</title>
</head>
<body>
<p>
<em>Emphasized:</em>
This text is emphasized and italic.
</p>
<p>
<b>Bold:</b> This text is bold.
</p>
<p>
<i>Italic:</i> This text is italic.
</p>
</body>
0utput:-
2|Page
ii ) Font Styles and Image tag
< html>
<html>
<body>
<h2>lakshay</h2>
<p>Lakshay<p>
<img src=
"https://www.edufever.com/wp-content/uploads/2020/04/image.png"
</body>
</html>
Output:-
H
3|Page
iii) Marquee: Move text, image and hyperlink
< html>
<html >
<head>
</head>
<body>
<h2>Moving Text</h2>
</marquee>
<h2>Moving Image</h2>
</marquee>
<h2>Moving Hyperlink</h2>
</a>
</marquee>
</body>
</html>
4|Page
Output:-
5|Page
2) Create an unordered list nested inside ordered list html:-
<ol>
<li>Main Item 1
<ul><li>Sub-item A</li>
<li>Sub-item B</li>
<li>Sub-item C</li>
</ul>
</li>
<li>Main Item 3
<ol>
<li>Sub-item 1.1</li>
<li>Sub-item 1.2
<ul>
<li>Sub-sub-item a</li>
<li>Sub-sub-item b</li>
</ul>
</li>
</ol>
</li>
</ol>
6|Page
Output:-
7|Page
3) Design a table with row span and column span and make use of attributes colspan,
rowspan, width, height, cellpadding, cellspacing etc.
< html>
<head>
<style> table {
border-collapse: collapse;
20px auto;
} th, td { border:
align: center;
</style>
</head>
<body>
<tr>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
8|Page
</tr>
<tr>
<td>Data 3</td>
</tr>
</table>
</body>
</html>
Output:-
9|Page
4) Make an image map showing the usage of shape, coords, href attributes in map
definition. Link each hotspot to their respective details. All the web pages should be
designed with proper background color, images, font styles and headings
< html>
<head>
<title>Page</title>
background-color: #ecf0f1;
margin: 0; padding: 0;
header { background-
text-align: center;
.content {
padding: 20px;
footer {
background-color:
10px 0;
</style>
</head>
<body>
10 | P a g e
<header>
Page Details
</header>
<div class="content">
<p>This is the content of Page 3. You can link to other pages from here.</p>
</div>
<footer>
</footer>
</body>
</html>
Output:-
11 | P a g e
5) Design Student registration form for admission in college:-
< html>
<head>
padding: 0;
header { background-color:
font-size: 28px;
} h2 { text-
form {
display: grid;
gap: 20px;
}
12 | P a g e
label { font-
weight: bold;
border-radius: 4px;
auto;
}
.form-group { display:
justify-content: space-between;
100%;
}
13 | P a g e
button:hover { background-color:
#2980b9;
.footer { background-color:
</style>
</head>
<body>
<header>
</header>
<div class="container">
<h2>Student Registration</h2>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group-inline">
14 | P a g e
<div class="form-group">
<label for="gender">Gender:</label>
<div>
<label for="male">Male</label>
<label for="female">Female</label>
<label for="other">Other</label>
</div>
</div>
<div class="form-group">
</div>
</div>
<div class="form-group">
<label for="address">Address:</label>
</div>
<div class="form-group">
15 | P a g e
</div>
<div class="form-group">
</div>
<div class="form-group">
<label for="percentage">Percentage/Grade:</label>
</div>
<div class="form-group">
<option value="BSc">BSc</option>
<option value="BCom">BCom</option>
<option value="BA">BA</option>
<option value="BTech">BTech</option>
<option value="MBA">MBA</option>
<option value="MSc">MSc</option>
</select>
</div>
<div class="form-group">
16 | P a g e
</div>
<div class="form-group">
</form>
</div>
<footer class="footer">
</footer>
</body>
</html>
17 | P a g e
Output:-
18 | P a g e
6) Create a webpage and show the usage of inline and internal style sheet and external
style sheet?
< html>
<html >
<head>
<style>
#333;
} h1 { color:
#2c3e50; text-align:
center;
.button { background-color:
#3498db; color: white;
.button:hover { background-color:
#2980b9;
19 | P a g e
</style>
</head>
<body>
<div class="container">
</div>
</body>
</html>
20 | P a g e
Output:-
21 | P a g e
7) Create a webpage containing a background image and apply all the background
styling attributes?
< html>
<head>
<style>
margin: 0; padding: 0;
background-attachment: fixed; /* Makes the background image stay fixed while scrolling
*/ background-color: #f0f0f0; /* Fallback color if the image doesn't load */ height:
100vh; /* Makes the background cover the entire height of the viewport */
} h1 { font-
size: 50px;
margin: 0;
22 | P a g e
} p{ font-
size: 20px;
margin-top: 10px;
</style>
</head>
<body>
<div class="content">
</div>
</body>
</html>
OUTPUT
23 | P a g e
8) Create a web page showing the usage of font styling attributes:-
<html>
<head>
</head>
<body>
<p>Someone’s sitting in the shade today because someone plated a tree a long time ago. </p>
<p style="color : lightgreen;"> Someone’s sitting in the shade today because someone plated
a tree a long time ago.
</p>
<p style="font-family : Book Antiqua; color: blue; " > Someone’s sitting in the shade today
because someone plated a tree a long time ago.
</p>
<p style="font size:3px;"> Someone’s sitting in the shade today because someone
plated a tree a long time ago.
</p>
</body>
</html>
24 | P a g e
Output:-
25 | P a g e
9) Create a web page and apply all Text styling attributes use Id and class selector:-
< html>
<head>
</head>
<body>
<p class="paragraph">
This webpage demonstrates the usage of various text styling properties, including font
family, font size, font weight, line height, letter spacing, and more. We are using ID and class
selectors to apply different styles to text elements on the page. Each style is unique and
customizable.
</p>
<p id="highlighted">
This text is highlighted with a custom background color and bold styling.
</p>
<p class="footer-text">
Thank you for visiting! You can learn more about text styling in CSS.
</p>
26 | P a g e
<p>
</p>
</body>
</html>
Output:-
27 | P a g e
10) Create a webpage and implement all list styling attributes:-
<html >
<head>
<style>
sans-serif; margin: 0;
padding: 0; background-
color: #f0f0f0;
} h1 { text-
align: center;
color: #2c3e50;
margin-top: 20px;
} h2 { color:
#34495e; margin-
top: 30px;
28 | P a g e
.custom-ordered-list { list-style-type: none; /*
.custom-ordered-list li {
.definition-list dt {
font-weight: bold;
top: 15px;
.definition-list dd {
margin-left: 20px;
color: #7f8c8d;
ul, ol {
margin: 20px;
padding: 10px;
29 | P a g e
.list-position-inside { list-style-position: inside; /*
li {
padding: 5px;
background-color: #ffffff;
border-radius: 5px;
li:hover { background-
color: #ecf0f1;
</style>
</head>
<body>
<h2>Unordered List</h2>
<ul class="unordered-list">
</ul>
30 | P a g e
<ol class="ordered-list">
</ol>
<ol class="custom-ordered-list">
</ol>
<h2>Definition List</h2>
<dl class="definition-list">
<dt>HTML</dt>
<dt>CSS</dt>
<dd>A style sheet language used to describe the presentation of a document written in
HTML.</dd>
<dt>JavaScript</dt>
<dd>A programming language commonly used to create interactive effects within web
browsers.</dd>
</dl>
<ul class="list-position-inside">
</ul>
31 | P a g e
<ul class="list-position-outside">
</ul>
</body>
</html>
OUTPUT
32 | P a g e
11) Create a Webpage with three equal columns:-
< html>
<head>
</head>
<body>
<div class="container">
<div class="column">
<h2>Column 1</h2>
</div>
<div class="column">
<h2>Column 2</h2>
</div>
<div class="column">
<h2>Column 3</h2>
</div>
</div>
</body>
</html>
33 | P a g e
OUTPUT
34 | P a g e
12) Create a webpage containing bootstrap table:-
< html>
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet">
</head>
<body>
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Name</th>
<th scope="col">Position</th>
<th scope="col">Office</th>
<th scope="col">Age</th>
<th scope="col">Salary</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>JASMEHAR SINGH</td>
35 | P a g e
<td>Software Engineer</td>
<td>New York</td>
<td>28</td>
<td>2019/05/01</td>
<td>$120,000</td>
</tr>
<tr>
<th scope="row">2</th>
<td>ARSHJOT</td>
<td>Project Manager</td>
<td>London</td>
<td>35</td>
<td>2017/09/15</td>
<td>$95,000</td>
</tr>
<tr>
<th scope="row">3</th>
<td>PIYUSH</td>
<td>UX Designer</td>
<td>San Francisco</td>
<td>29</td>
<td>2018/03/22</td>
<td>$110,000</td>
</tr>
<tr>
<th scope="row">4</th>
<td>DEV</td>
36 | P a g e
<td>Data Scientist</td>
<td>Los Angeles</td>
<td>32</td>
<td>2016/07/09</td>
<td>$130,000</td>
</tr>
</tbody>
</table>
</div>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></scri pt>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
</body>
</html>
OUTPUT
37 | P a g e