Part A Web Progg
Part A Web Progg
Design web pages for your college containing college name and logo, departments list using list tags.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Your College Name</title>
</head>
<body>
<header>
<!-- College name centered at the top of the page -->
<h1 align="center">Government First Grade College Mahagaon Cross</h1>
<!-- College logo image centered below the college name -->
<img src="C:\Users\Manohar\OneDrive\Documents\OIP.jpeg" alt="College Logo" style="display:block;
margin-left:auto; margin-right:auto;">
</header>
<main>
<section>
<!-- Section for the list of departments -->
<h2 align="center">Departments</h2>
<!-- Unordered list to display departments -->
<ul>
<li>Computer Science</li>
<li>Physics</li>
<li>Statistics</li>
<!-- Add more departments as needed -->
</ul>
</section>
</main>
<footer>
<!-- Footer with copyright notice -->
<p align="center">© Government First Grade College Mahagaon Cross</p>
</footer>
</body>
</html>
2.create a class timetable using table tag.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Class Timetable</title>
</head>
<body>
<!-- Table for the class timetable -->
<table border="1">
<!-- Table header row -->
<tr>
<!-- Day of the week -->
<th>Day</th>
<!-- Class start time -->
<th>Start Time</th>
<!-- Class end time -->
<th>End Time</th>
<!-- Subject -->
<th>Subject</th>
</tr>
<!-- Monday -->
<tr>
<td>Monday</td>
<td>09:00 AM</td>
<td>10:30 AM</td>
<td>Mathematics</td>
</tr>
<!-- Tuesday -->
<tr>
<td>Tuesday</td>
<td>11:00 AM</td>
<td>12:30 PM</td>
<td>Science</td>
</tr>
<!-- Wednesday -->
<tr>
<td>Wednesday</td>
<td>02:00 PM</td>
<td>03:30 PM</td>
<td>History</td>
</tr>
<!-- Thursday -->
<tr>
<td>Thursday</td>
<td>10:00 AM</td>
<td>11:30 AM</td>
<td>English</td>
</tr>
<!-- Friday -->
<tr>
<td>Friday</td>
<td>01:00 PM</td>
<td>02:30 PM</td>
<td>Computer Science</td>
</tr>
</table>
</body>
</html>
3. write a html code to design student registrations form for your college admissions
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Registration Form</title>
</head>
<body>
<!-- Form for student registration -->
<form action="process_registration.php" method="post">
<!-- Personal Information Section -->
<fieldset>
<legend>Personal Information</legend>
<!-- Full Name -->
<label for="full_name">Full Name:</label>
<input type="text" id="full_name" name="full_name" required>
<!-- Date of Birth -->
<label for="dob">Date of Birth:</label>
<input type="date" id="dob" name="dob" required>
</fieldset>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multimedia Example</title>
</head>
<body>
<!-- Image -->
<h2>Image:</h2>
<img src="path_to_image.jpg" alt="Sample Image" width="300">
6 write a code in html to develop a webpage having two frames that divide the webpage into two equal rows and
then divide the row into equal columns fill each frame with a different background color
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Two-Row, Two-Column Frames</title>
<style>
/* Apply styles to the frames */
.frame {
width: 50%; /* Set the width of each frame to 50% of the parent */
height: 50%; /* Set the height of each frame to 50% of the parent */
border: 1px solid black; /* Add a border to each frame */
}
/* Set background colors for each frame */
#frame1 { background-color: #f0f0f0; } /* Light grey background for the first frame */
#frame2 { background-color: #e0e0e0; } /* Darker grey background for the second frame */
</style>
</head>
<frameset rows="50%,50%">
<!-- First row of frames -->
<frameset cols="50%,50%">
<!-- First column in the first row -->
<frame src="C:\Users\Manohar\Downloads\multimedia.html" class="frame" id="frame1">
<!-- Second column in the first row -->
<frame src="C:\Users\Manohar\Downloads\studregistration.html" class="frame" id="frame2">
</frameset>
<!-- Second row of frames -->
<frameset cols="50%,50%">
<!-- First column in the second row -->
<frame src="C:\Users\Manohar\Downloads\timetable.html" class="frame" id="frame1">
<!-- Second column in the second row -->
<frame src="C:\Users\Manohar\Downloads\collegewebsite.html" class="frame" id="frame2">
</frameset>
</frameset>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ID Card</title>
</head>
<body>
<!-- ID Card container -->
<div style="width: 300px; height: 400px; border: 1px solid #000; margin: auto; text-align: center; background-color:
#f3f3f3;">
<!-- ID Card Header -->
<div style="background-color: #4CAF50; color: white; padding: 10px;">
<h2 style="margin: 0;">College Name</h2>
</div>
<!-- ID Card Image -->
<img src="path_to_image.jpg" alt="Profile Photo" style="width: 100px; height: 100px; margin-top: 15px;">
<!-- ID Card Details -->
<div style="margin-top: 20px;">
<p style="margin: 5px 0;"><strong>Name:</strong> John Doe</p>
<p style="margin: 5px 0;"><strong>Department:</strong> Computer Science</p>
<p style="margin: 5px 0;"><strong>ID:</strong> #123456</p>
</div>
<!-- ID Card Footer -->
<div style="position: absolute; bottom: 0; width: 100%; background-color: #4CAF50; color: white; padding: 5px;">
<p style="margin: 0;">Valid Through 12/2024</p>
</div>
</div>
</body>
</html>