List of Programmes for IWT Lab
List of Programmes for IWT Lab
Submitted By Submitted To
NAME: DR. DEVENDER KUMAR
Semester: 3
ASSOCIATE PROFESSSOR
Programme:
UNIVERSITY ROLL NO. Bachelor of Computer Applications
<ul>
<li><a href="#courses">Courses</a></li>
<li><a href="#departments">Departments</a></li>
<li><a href="#faculty">Faculty</a></li>
<li><a href="#library">Library</a></li>
</ul>
<h2 id="departments">Departments</h2>
<ul>
<li>Computer Science</li>
<li>Mathematics</li>
</ul>
<h2 id="faculty">Faculty</h2>
<ul>
<li>Dr. Smith - Computer Science</li>
<li>Prof. John - Mathematics</li>
</ul>
<h2 id="library">Library</h2>
<p>Our library has a vast collection of books and online resources.</p>
</body>
</html>
Output:
3. Webpage Using Frames with Interactivity
Program Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Webpage with Frames</title>
</head>
<frameset rows="70,*,50">
<frame src="header.html" name="header">
<frameset cols="200,*">
<frame src="left.html" name="left" />
<frame src="right.html" name="right" />
</frameset>
<frame src="status.html" name="status">
</frameset>
</html>
<h2>Skills</h2>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
<h2>Experience</h2>
<ul>
<li>Software Developer at XYZ Corp</li>
</ul>
<h2>Education</h2>
<ul>
<li>Bachelor's in Computer Science from Baba Mast Nath University</li>
</ul>
</body>
</html>
Output:
5. Supermarket Webpage Using Internal CSS
HTML Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Supermarket</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
h1 {
color: #333;
}
.product {
display: inline-block;
width: 200px;
margin: 10px;
text-align: center;
}
.product img {
width: 100%;
height: auto;
}
</style>
</head>
<body>
</body>
</html>
Output:
<div class="content">
<p>Programmes Offered: MCA and BCA</p>
<p>Courses Offered: Web Development, Data Science, etc.</p>
</div>
</body>
</html>
Output:
<p style="padding:5px;"Explore our courses and departments. All pages are mobile-
friendly!</p>
</body>
</html>
Output:
<h2>Login</h2>
<form onsubmit="return validateForm()">
Username: <input type="text" id="username"><br><br>
Password: <input type="password" id="password"><br><br>
<input type="submit" value="Login">
</form>
</body>
</html>
Output:
11. Simple Calculator Using JavaScript
HTML Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Calculator</title>
<script>
function calculate(operation) {
var num1 = parseFloat(document.getElementById("num1").value);
var num2 = parseFloat(document.getElementById("num2").value);
var result;
if (operation === "add") {
result = num1 + num2;
} else if (operation === "subtract") {
result = num1 - num2;
} else if (operation === "multiply") {
result = num1 * num2;
} else if (operation === "divide") {
result = num1 / num2;
}
document.getElementById("result").innerText = "Result: " + result;
}
</script>
</head>
<body>
<h2>Simple Calculator</h2>
Number 1: <input type="text" id="num1"><br><br>
Number 2: <input type="text" id="num2"><br><br>
<button onclick="calculate('add')">Add</button>
<button onclick="calculate('subtract')">Subtract</button>
<button onclick="calculate('multiply')">Multiply</button>
<button onclick="calculate('divide')">Divide</button><br><br>
<p id="result"></p>
</body>
</html>
Output: