Practical File..(Web Technology)Final
Practical File..(Web Technology)Final
OF
INTRODUCTION TO WEB TECHNOLOGY (ITWT)
BCA Program (Second Semester)
Program: BCA
Semester: Second
Course: (Pr)-Introduction to Web Technology
Course Code: B23-CAP-202
1|Page
2|Page
LIST OF PROGRAMS
Program
Sr. No. Programs Name Date Signature
1. Create a web page using an ordered list and an
unordered list.
2. Design a web page to show your institute with
hyperlinks.
3. Create your resume on an HTML page.
4. Create a web page and divide the web page into
four frames. In one frame create three links that
will display different HTML forms in the
remaining three frames respectively.
5. Create a web page to show the college record in
the form of a table.
6. Write an HTML code to add internal CSS on a
webpage
7. Design a blog-style personal website.
8. Design a web page to display your college with
hyperlinks.
9. Write a JavaScript function to calculate the sum of
two numbers.
10. Write a JavaScript program to find the maximum
number in an array.
11. Write a JavaScript function to check if a given
string is a palindrome (reads the same forwards
and backward).
12. Write a CSS file and attach it to any 3 HTML web
pages.
13. Use Div and span in a page and color two words
with the same colors.
14. Using HTML, CSS create a styled checkbox with
animation on state change
15. Design a web page that is like a compose page
of e-mail. It should have:
a) Text boxes for To, CC, and BCC respectively.
b) Text field for the message.
c) Send button.
d) Option for selecting a file for attachment
16. After clicking the send button a new page should
open with the display message “Message has been
sent”.
3|Page
Program No.-1
Create a web page using an ordered list and an unordered list.
<html>
<head>
4|Page
</html>
OUTPUT
5|Page
Program-2
<html>
<head>
<title>My College</title>
<style>
body {
background-color: #f4f8fb;
margin: 0;
padding: 0;
header {
background-color: #004080;
color: white;
padding: 20px;
text-align:
center;
nav {
background-color: #007acc;
display: flex;
justify-content: center;
6|Page
padding: 10px;
7|Page
}
nav a {
color: white;
text-decoration: none;
margin: 0 15px;
font-weight: bold;
nav a:hover {
text-decoration: underline;
section
{ padding:
20px;
text-align: center;
footer {
background-color: #004080;
color: white;
text-align: center;
padding: 10px;
</style>
</head>
<body>
8|Page
9|Page
<header>
<h1>Welcome to My College</h1>
</header>
<nav>
<a href="https://www.sgi.ac.in/courses">Courses</a>
<a
href="https://www.sgi.ac.in/assets/images/Image%20Carousel/landscape2.png">Admissions
</a>
<a href="https://www.sgi.ac.in/contact">Contact</a>
</nav>
<section id="about">
<h2>About Us</h2>
</section>
<section id="courses">
<h2>Courses</h2>
<p>We offer undergraduate and postgraduate programs in science, arts, commerce, and
technology.</p>
</section>
10 | P a g e
<section id="admissions">
<h2>Admissions</h2>
<p>Apply now to be part of an inspiring educational journey. Admissions are open for
the 2025-26 session.</p>
</section>
<section id="campus">
<h2>Campus Life</h2>
<p>Our campus offers a vibrant community with clubs, events, sports, and cultural
activities.</p>
</section>
<section id="contact">
<h2>Contact Us</h2>
</section>
<footer>
</footer>
</body>
</html>
11 | P a g e
OUTPUT
12 | P a g e
Program: 3
<html>
<head>
<title>My Resume</title>
</head>
<body>
<h1>Muskan..</h1>
<h2>Objective</h2>
<h2>Education</h2>
<ul>
</ul>
<h2>Work Experience</h2>
<ul>
<li><strong>Software Developer</strong>
13 | P a g e
<ul>
</ul>
</li>
</ul>
<h2>Skills</h2>
<ul>
</ul>
<h2>Hobbies</h2>
<ul>
</ul>
</body>
</html>
14 | P a g e
OUTPUT
15 | P a g e
Program: 4
Create a web page and divide the web page into four frames. In one frame create three
links that will display different HTML forms in the remaining three frames
respectively.
<html>
<head>
<style>
body, html
{ margin: 10;
height: 100%;
.grid-container
{ display: grid;
height: 100vh;
.frame {
padding: 20px;
box-sizing: border-box;
16 | P a g e
.frame2 { background-color: #6a2c70; color: white; }
</style>
</head>
<body>
<div class="grid-container">
</div>
</body>
</html>
OUTPUT
17 | P a g e
Program: 5
Create a web page to show the college record in the form of a table.
<html>
<head>
<meta charset="UTF-8">
<style>
body {
background-color: #f4f4f4;
padding: 40px;
h1 {
text-align: center;
table {
margin: 0 auto;
width: 80%;
border-collapse: collapse;
background-color: #fff;
th, td {
text-align: center;
18 | P a g e
}
th {
background-color: #4CAF50;
color: white;
tr:nth-child(even)
{ background-color:
#f9f9f9;
tr:hover {
background-color: #f1f1f1;
</style>
</head>
<body>
<h1>College Record</h1>
<table>
<thead>
<tr>
<th>Roll No</th>
<th>Student Name</th>
<th>Course</th>
<th>Year</th>
<th>Grade</th>
</tr>
</thead>
19 | P a g e
20 | P a g e
<tbody>
<tr>
<td>2418007</td>
<td>Shubham</td>
<td>BCA</td>
<td>2025</td>
<td>A+</td>
</tr>
<tr>
<td>102</td>
<td>NIkhil</td>
<td>BCA</td>
<td>2025</td>
<td>B+</td>
</tr>
</tbody>
</table>
</body>
</html>
OUTPUT
21 | P a g e
Program: 6
<html >
<head>
<style>
body {
background-color: #f0f0f0;
color: #333;
text-align: center;
padding: 50px;
h1 {
color: #4CAF50;
p{
font-size: 18px;
.highlight {
22 | P a g e
background-color: yellow;
padding: 5px;
</style>
</head>
<body>
<h1>Welcome to My Webpage</h1>
</body>
</html>
OUTPUT
23 | P a g e
Program: 7
24 | P a g e
Program: 8
<html >
<head>
<meta charset="UTF-8">
<title>My Institute</title>
<style>
body {
margin: 0;
padding: 0;
text-align: center;
background-color: #f4f4f4;
header {
background-color: #005f73;
color: white;
padding: 20px;
font-size: 24px;
nav {
background: #0a9396;
padding: 10px;
25 | P a g e
nav a {
color: white;
margin: 0 15px;
text-decoration: none;
font-size: 18px;
section
{ margin:
20px;
padding: 20px;
background: white;
border-radius: 10px;
footer {
background: #005f73;
color: pink;
padding:10px;
margin-top: 20px;
</style>
</head>
<body>
<header>
</header>
26 | P a g e
27 | P a g e
<nav>
<a href="#courses">Courses</a>
<a href="#admissions">Admissions</a>
</nav>
<section id="about">
<h2>About Us</h2>
<p>At SGI, We Make You Believe In Yourself! Think Different - Think Samalkha</p
</section>
<section id="courses">
<h2>Courses</h2>
</section>
<section id="admissions">
<h2>Admissions</h2>
<p>Join our institute by following our easy admission process. Apply online and start your
journey with us.</p>
</section>
<section id="contact">
<h2>Contact Us</h2>
<p>Email: [email protected]</p>
<p>Phone: 9873440268</p>
28 | P a g e
</section>
<footer>
</footer>
</body>
</html>
OUTPUT
29 | P a g e
Program: 9
<html>
<head>
<meta charset="UTF-8">
<script>
function calculateSum() {
</script>
</head>
<body>
30 | P a g e
<button onclick="calculateSum()">Calculate</button>
<p id="result"></p>
</body>
</html>
OUTPUT
31 | P a g e
Program: 10
<html>
<head>
</head>
<body>
<p id="arrayDisplay"></p>
<p id="result"></p>
<script>
// Example array
function findMax() {
32 | P a g e
document.getElementById('result').innerText = "Maximum number is: " +
maxNumber;
</script>
</body>
</html>
OUTPUT
33 | P a g e
Program: 11
Write a JavaScript function to check if a given string is a palindrome (reads the same
forwards and backward)
<html>
<head>
<title>Palindrome Checker</title>
<style>
body {
padding: 20px;
input, button
{ padding:
8px; margin:
5px 0;
</style>
</head>
<body>
<h1>Palindrome Checker</h1>
<button onclick="checkPalindrome()">Check</button>
34 | P a g e
35 | P a g e
<p id="result"></p>
<script>
function checkPalindrome() {
} else {
</script>
</body>
</html>
36 | P a g e
OUTPUT
37 | P a g e
Program: 12
<html>
<head>
<title>Home Page</title>
</head>
<body>
<nav>
<a href="https://sgi.ac.in/">Home</a>
</nav>
</body>
</html>
<html>
<head>
<title>About Us</title>
38 | P a g e
</head>
<body>
<nav>
<a href="https://sgi.ac.in/courses">About</a>>
</nav>
<h1>About Us</h1>
<p>We are a team dedicated to building simple and effective web pages using HTML and
CSS.</p>
</body>
</html>
<html>
<head>
<title>Contact Us</title>
</head>
<body>
<nav>
<a href="https://sgi.ac.in/contact">Contact</a>
39 | P a g e
</nav>
<h1>Contact Us</h1>
<p>If you have any questions, feel free to reach out via email or social media!</p>
</body>
</html>
OUTPUT
40 | P a g e
Program: 13
Use Div and span in a page and color two words with the same colors.
<html>
<head>
<style>
.highlight
{ color: blue;
}
</style>
</head>
<body>
<div>
This is a <span class="highlight">blue</span> word in a div.
</div>
<span>
Here is another <span class="highlight">blue</span> word in a span.
</span>
</body>
</html>
OUTPUT
41 | P a g e
Program: 14
Using HTML, CSS create a styled checkbox with animation on state change
<html>
<head>
<title>Animated Checkbox</title>
<style>
body {
font-family: sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #f0f0f0;
}
.checkbox-wrapper {
display: flex;
align-items: center;
cursor: pointer;
}
.checkbox-wrapper input[type="checkbox"]
{ display: none;
}
.custom-checkbox {
width: 24px;
height: 24px;
border: 2px solid #555;
42 | P a g e
border-radius: 6px;
position: relative;
transition: background-color 0.3s, border-color 0.3s;
}
.custom-checkbox::after {
content: '';
position: absolute;
left: 6px;
top: 2px;
width: 6px;
height: 12px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg) scale(0);
opacity: 0;
transition: transform 0.3s ease, opacity 0.3s ease;
}
input[type="checkbox"]:checked + .custom-checkbox
{ background-color: #4CAF50;
border-color: #4CAF50;
}
input[type="checkbox"]:checked + .custom-checkbox::after
{ transform: rotate(45deg) scale(1);
opacity: 1;
}
.label-text {
43 | P a g e
margin-left: 10px;
font-size: 16px;
}
</style>
</head>
<body>
<label class="checkbox-wrapper">
<input type="checkbox" id="checkbox">
<span class="custom-checkbox"></span>
<span class="label-text">I agree</span>
</label>
</body>
</html>
44 | P a g e
OUTPUT
45 | P a g e
Program: 15
Design a web page that is like a compose page of e-mail. It should have:
a) Text boxes for To, CC, and BCC respectively.
b) Text field for the message.
c) Send button.
d) Option for selecting a file for attachment
<html>
<head>
<style>
body {
margin: 40px;
.form-group {
margin-bottom: 15px;
label {
display: inline-block;
width: 60px;
{ width: 400px;
padding: 8px;
font-size: 14px;
46 | P a g e
}
textarea
{ height:
200px; resize:
vertical;
.button {
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
.button:hover {
background-color: #0056b3;
</style>
</head>
<body>
<h2>Compose Email</h2>
<div class="form-group">
<label for="to">To:</label>
47 | P a g e
<input type="email" id="to" name="to" required>
48 | P a g e
</div>
<div class="form-group">
<label for="cc">CC:</label>
</div>
<div class="form-group">
<label for="bcc">BCC:</label>
</div>
<div class="form-group">
<label for="message">Message:</label><br>
</div>
<div class="form-group">
<label for="attachment">Attach:</label>
</div>
<div class="form-group">
</div>
</form>
</body>
49 | P a g e
</html>
OUTPUT
50 | P a g e
Program: 16
After clicking the send button a new page should open with the display
message “Message has been sent”.
<html>
<head>
<title>Send Message</title>
<script>
function sendMessage() {
newWindow.document.write(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sent</title>
</head>
<body>
</body>
</html>
`);
newWindow.document.close();
</script>
</head>
51 | P a g e
<body>
<h2>Contact Form</h2>
<button type="submit">Send</button>
</form>
</body>
</html>
OUTPUT
–––––
52 | P a g e
53 | P a g e