Web Technology Journal Part a-2
Web Technology Journal Part a-2
1.Design web pages for your college containing college name and Logo, departments list
using href, list tags.
<!DOCTYPE html>
<html>
<head>
</head>
<body bgcolor="silver">
<h2>Department List</h2>
<ul>
<li>Physics</li>
<li>Chemistry</li>
<li>Mathematics</li>
<li>Biology</li>
<li>Computer Science</li>
</ul>
<h2>Steps to Apply for Admission</h2>
<ol>
</ol>
<dl>
<dt>Semester</dt>
<dd>An academic term that divides the year into two parts.</dd>
<dt>Credit Hours</dt>
</dl>
</body>
</html>
Output:
<html>
<head>
<title>Class Timetable</title>
<style>
</style>
</head>
<body>
<h2>Class Timetable</h2>
<table>
<tr>
<th>Day</th>
<th>10.00-11.00</th>
<th>11.00-12.00</th>
<th>12.00-1.00</th>
<th>1.00-2.00</th>
<th>3.00-4.00</th>
</tr>
<tr>
<td>Monday</td>
<td>Maths</td>
<td>Physics</td>
<td>Chemistry</td>
<td>Lunch</td>
<td>Computer Science</td>
</tr>
<tr>
<td>Tuesday</td>
<td>Physics</td>
<td>Maths</td>
<td>Computer Science</td>
<td>Lunch</td>
<td>Chemistry</td>
</tr>
<tr>
<td>Wednesday</td>
<td>Physics</td>
<td>Chemistry</td>
<td>Computer Science</td>
<td>Lunch</td>
<td>Maths</td>
</tr>
<tr>
<td>Thursday</td>
<td>Maths</td>
<td>Computer Science</td>
<td>Physics</td>
<td>Lunch</td>
<td>Chemistry</td>
</tr>
<tr>
<td>Friday</td>
<td>Chemistry</td>
<td>Computer Science</td>
<td>Maths</td>
<td>Lunch</td>
<td>Physics</td>
</tr>
<tr>
<td>Saturday</td>
<td>Maths</td>
<td>Computer Science</td>
<td>Physics</td>
<td>Lunch</td>
<td>Chemistry</td>
</tr>
</table>
</body>
</html>
Output:
3.Write a HTML code to design Student registrations form for your college Admission.
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: Lightskyblue;
text-align: center;
#confirmation
font-size: 20px;
font-weight: bold;
color: green;
margin-top: 20px;
</style>
</head>
<body>
<fieldset>
<legend><b>Personal Details</b></legend>
<label>Firstname:</label>
<label>Middlename:</label>
<label>Lastname:</label>
<label>Course:</label>
<option value="BCA">BCA</option>
<option value="BSc">B.Sc</option>
<option value="BBA">BBA</option>
<option value="BCom">B.Com</option>
</select><br><br>
<label>Gender:</label><br>
<label>Phone:</label>
<label>Address:</label><br>
<label>Email:</label>
<label>Password:</label>
<label>Re-type Password:</label>
</fieldset>
</form>
<!--<div id="confirmation">
Form has been submitted successfully!
</div>
<script>
document.getElementById("registrationForm").onsubmit = function(event) {
};
</script>
</body>
</html>
Output:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h2>Image Example</h2>
<h2>Audio Example</h2>
<audio controls>
</audio>
<h2>Video Example</h2>
</video>
<h2>GIF Example</h2>
</body>
</html>
Output:
5.Create a web page using frame.
#main.html
<!DOCTYPE html>
<html>
<head>
</head>
<frame src="program5frame1.html">
<frame src="program5frame2.html">
<frame src="program5frame3.html">
</frameset>
</html>
# program5frame1
<!DOCTYPE html>
<html>
<body bgcolor="red"
<h3>frame 2</h3>
</body>
</html>
# program5frame2
<!DOCTYPE html>
<html>
<body bgcolor="red"
<h3>frame 2</h3>
</body>
</html>
# program5frame3
<!DOCTYPE html>
<html>
<body bgcolor="skyblue"
<h3>frame 3</h3>
</body>
</html>
Output:
6. Write 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>
<head>
<title>Two Frames with Equal Coluumns</title>
<style>
.container
{
display: flex;
flex-direction: column;
height:100vh;
}
.frame
{
display: flex;
flex:1;
}
.column
{
flex: 1;
padding: 20px;
box-sizing:border-box;
text-align:center;
font-size: 20px;
font-weight: bold;
}
.frame1
{
background-color:lightblue;
}
.frame2
{
background-color: lightgreen;
}
.column{
border:2px solid white;
}
</style>
</head>
<body>
<div class="container">
<div class="frame frame1">
<div class="column">Column 1 (Frame1)></div>
<div class="column">Column 2(Frame1)</div>
</div>
</div>
</body>
</html>
Output:
7.Write CSS code to Use Inline CSS to format your ID Card.
<!DOCTYPE html>
<html>
<head>
<title>Student ID Card</title>
<style>
*{
padding: 0;
margin: 0;
}
.card
width: 300px;
background-color: lightyellow;
padding: 50px;
border-radius: 10px;
.passs
border-radius: 15px;
}
</style>
</head>
<body>
<div class="card">
</div>
</body>
</html>
Output:
8.Using HTML, CSS create display a text called—Hello India! On top of an image of
<html>
<head>
<title>overlap</title>
<style>
*{
margin: 0;padding: 0;
.overlap{
text-align: center;
margin-top: 40px;
.overlap h1{
position: absolute;
font-size: 120px;
color: blue;
top: 20%;
left: 22%;
}
</style>
<body>
<div class="overlap">
<h1>Hello India!</h1>
</div>
</body>
</head>
</html>
Output: