Web Lab Programs
Web Lab Programs
Design web pages for your college containing college name and Logo,
departments list using href, list tags.
<html>
<head>
<title>
College Department Details
</title>
</head>
<body bgcolor="lightgreen">
<marquee bgcolor="red"><FONT SIZE="100">WELCOME TO IBMR BUSINESS
SCHOOL</MARQUEE></FONT>
<img src="C:\Users\ibmr\Desktop\IBB.jpg"align="RIGHT"></marquee>
<h1 align="center" style="color: black;">IBMR COLLEGE</h1>
<h2 align="center" style="color: black;">Akashy colony,Vidya nagar</h2>
<h2 align="center" style="color: black;">HUBBALLI-580030</h2>
<hr>
<h2 align="center" style="color: BLUE;">About College </h2>
<p style="font-family:courier";>IBMR Hubli, officially the Institute of Business
Management and Research, is a private business school located in Hubli, Karnataka,
India. It was established in 1999 and is recognized by AICTE. IBMR Hubli offers a range
of undergraduate and postgraduate programs, including MBA, BBA, and PGDM, with a
focus on industry-aligned learning. IBMR Business School, Hubli (also known as IBMR
Business School Hubli), founded in 1999, is located in Hubli, Karnataka. IBMR Business
School Hubli is a private institute and it has course approved by AICTE. It offers 1 course
at PG level. Course MBA/PGDM is provided in Full Time mode. The institute offers the
course in streams such as Banking, Finance & Insurance, Business & Management
Studies and Hospitality & Travel. These course is served in various specialisations such
as Agriculture & Food Business, HealthCare & Hospital, Operations, Retail. The institute
provides an annual intake of 120 students. The total fees for all the course at IBMR
Business School, Hubli is around INR 4,20,000. IBMR Business School, Hubli has a
well-equipped campus with all the advanced facilities.
</p>
<h2><b>Courses Offered</b></h2>
<ul>
<li>PUC</li>
<li>Bsc</li>
<li>BCA</li>
<li>BCOM</li>
<li>BBA</li>
<li>BA</li>
<li>MBA</li>
<li>MCOM</li>
</ul>
<h2>Department of Computer Science</h2>
<p style="font-family:courier">To educate the young
minds with the ability to manage real world problem with the latest technology,
to inculcate professional behaviors, strong ethical values, innovative research
capability and leadership ability.
Help the students to explore the depths of computer science, exalt in them and at
the same time join hands with the other
branches of science to turn something virtual into real and vice versa.</p>
<h2>Faculties of Computer Science</h2>
<ol>
<li>Prof Roopa</li>
<li>prof Kavita</li>
<li>Prof Swathi</li>
<li>Prof Bharati</li>
</ol>
<h3>Condact as </h3>
<p>Phone Number: 09945111232</p>
<p>Email:info@ibmrbschool.org</p>
3. Write a HTML code to design Student registrations form for your college
Admission.
<!DOCTYPE html>
<html>
<!-- Header Section-->
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
Student Registration Form
</title>
</head>
<!--Body of the Webpage-->
<body bgcolor="orange">
<!--Start of Form-->
<div style="margin: auto;width: 30%;">
<form>
<h2>Student Registration Form</h2>
<p>Fill in this form to register</p>
<br>
<br>
<label><b>Last Name</b></label>
<input type="text" placeholder="Enter your last name" name="last_name" required>
<br>
<br>
<label><b>E-mail</b></label>
<input type="email" placeholder="Enter your e-mail" name="email" required>
<br>
<br>
<label><b>Date of Birth</b></label>
<input type="date" name="dob" required>
<br>
<br>
<label><b>Set Username</b></label>
<input type="text" placeholder="Set Username" name="username" required>
<br>
<br>
<label><b>Set Password</b></label>
<input type="password" placeholder="Set password" name="password" required>
<br>
<br>
<label><b>Gender</b></label><br>
<input type="radio" name="gender" value="Male">
<label for="Male">Male</label><br>
<input type="radio" name="gender" value="Female">
<label for="Female">Female</label><br>
<BR>
<br>
<label><b>Course :</b></label>
<select>
<option value="Course">Course</option>
<option value="A">BSC </option>
<option value="B">BCA </option>
<option value="C">BBA </option>
<option value="D">BCOM</option>
<option value="E">BA</option>
</select>
<br>
<br>
<input type="button" value="Register"/>
</form>
</div>
</body>
</html>
4. Design Web Pages with includes Multi-Media data (Image, Audio, Video, GIFs
etc)
<html>
<body>
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video><br>
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<img src="file:///C:/Users/ibmr/Desktop/aaa.png">
</body>
</html>
<html>
<head>
</head>
<frameset rows="50%,50%">
<frameset cols="50%,50%">
<frame src="" style="background:red"></frame>
<frame src="" style="background:green"></frame>
</frameset>
<frame src="" style="background:orange"></frame>
</frameset>
</htm
7. Write CSS code to Use Inline CSS to format your ID Card.
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.card {
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
width: 40%;
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
.container {
padding: 2px 16px;
}
</style>
</head>
<body>
<h2>Card</h2>
<div class="card">
<img src="img_avatar.png" alt="Avatar" style="width:100%">
<div class="container">
<h4><b>John Doe</b></h4>
<p>Architect & Engineer</p>
</div>
</div>
</body>
</html>
8. Using HTML, CSS create display a text called ―Hello India !ǁ on top of an
image of India-Map using an overlay.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Independence Day</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<body>
<div id="top"></div>
<div id="middle">
<div id="text">Hello India</div>
<img src="C:\Users\ibmr\Desktop\download.jpg">
</div>mm
<html>
<head>
<title>Arithmetic Operations</title>
</head>
<body>
<script type="text/javascript">
var a = 12;
var b = 34;
var result;
document.write("Value of a = " + a + " and b = "+ b);
result = a + b;
document.write("<br>Addition of a & b = " + result );
result = a - b;
document.write("<br>Subtraction of a & b = " + result );
result = a * b;
document.write("<br>Multiplication of a & b = " + result );
result = a / b;
document.write("<br>Division of a & b = " + result );
</script>
</body>
</html>
<HTML>
<body>
<h1>Prime Numbers </h1>
<p id="piyu"></p>
</p>
<p id="prime-list"></p>
<script>
for (let i = 1; i <= 100; i++) {
let isPrime = true;
for (let j = 2; j < i; j++) {
if (i % j === 0) {
isPrime = false;
break;
}
}
if (isPrime && i > 1) {
const li = document.createElement("li");
li.textContent = i;
document.getElementById("prime-list").appendChild(li);
}
}
</script>
</body>
</HTML>
<p id="demo"></p>
<script>
// Create an empty Object
const person = {};
// Add Properties
person.firstName = "ASHOK";
person.lastName = "KUMAR";
person.age = 20;
person.eyeColor = "blue";
</body>
</html>
12. JavaScript Program to Create Array and inserting Data into Array
<html>
<body>
<h1>JavaScript Arrays</h1>
<h2>The push() Method</h2>
<p>push() adds new items to the end of an array:</p>
<p id="demo"></p>
<script>
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
document.getElementById("demo").innerHTML = fruits;
</script>
</body>
</html>
<html>
<head>
<script>
function validateForm() {
let x = document.forms["myForm"]["fname"].value;
if (x == "") {
alert("Name must be filled out");
return false;
}
}
</script>
</head>
<body>
<h2>JavaScript Validation</h2>
<form name="myForm" action="/action_page.php" onsubmit="return validateForm()"
method="post">
Name: <input type="text" name="fname">
<input type="submit" value="Submit">
</form>
</body>
</html>