HTML Record
HTML Record
<head>
<title>Image</title>
</head>
<body>
<center>
<a href="logo.jpg" target="right">
<img src="https://via.placeholder.com/150.png?text=Logo+1" alt="Random
Logo">
</a>
<br>
<a href="logo1.jpg" target="right">
<img src="https://via.placeholder.com/150.png?text=Logo+1" alt="Random
Logo 1">
</a>
<br>
<a href="logo2.jpg" target="right">
<img src="https://via.placeholder.com/150.png?text=Logo+2" alt="Random
Logo 2">
</a>
<br>
<a href="logo3.jpg" target="right">
<img src="https://via.placeholder.com/150.png?text=Logo+3" alt="Random
Logo 3">
</a>
</body>
</html>
Output:
Aim: Divide a webpage into 3 parts using frames and include a background image,
table, and hyper link in the parts
Source Code:
Index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Webpage with Frames</title>
</head>
<frameset rows="33%, 33%, 34%">
<frame src="part1.html" name="tableFrame">
<frame src="part2.html" name="backgroundFrame">
<frame src="part3.html" name="linksFrame">
</frameset>
</html>
Part1:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Table Frame</title>
<style>
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<table>
<tr>
<th>Service</th>
<th>Description</th>
<th>Price</th>
</tr>
<tr>
<td>Web Development</td>
<td>Creating responsive and modern websites</td>
<td>$2000</td>
</tr>
<tr>
<td>SEO Optimization</td>
<td>Improving search engine rankings</td>
<td>$1500</td>
</tr>
<tr>
<td>Graphic Design</td>
<td>Designing visually appealing graphics</td>
<td>$1000</td>
</tr>
</table>
</body>
</html>
Part2:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Background Frame</title>
<style>
body {
margin: 0;
height: 100%;
background-image: url('your-background-image.jpg');
background-size: cover;
background-position: center;
color: white;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
</style>
</head>
<body>
<h1>Welcome to Our Company</h1>
</body>
</html>
Part3:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Links Frame</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
}
a{
display: block;
margin-bottom: 10px;
color: #1a0dab;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<a href="https://www.example.com">Example Link 1</a>
<a href="https://www.example.com">Example Link 2</a>
<a href="https://www.example.com">Example Link 3</a>
</body>
</html>
Output:
Aim: Design a web page to show the product details of a computer, printer
andscanner with images
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product Details</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
}
.container {
max-width: 1200px;
margin: 20px auto;
padding: 0 20px;
}
.product {
margin-bottom: 40px;
}
.product h2 {
margin-bottom: 10px;
}
.product img {
max-width: 100%;
height: auto;
}
.product-details {
margin-top: 20px;
}
.product-details p {
margin: 5px 0;
}
</style>
</head>
<body>
<header>
<h1>Product Details</h1>
</header>
<div class="container">
<div class="product">
<h2>Computer</h2>
<img src="mackbook.jpg" alt="Computer">
<div class="product-details">
<p>Brand: Apple</p>
<p>Model: MacBook Pro</p>
<p>Price: $1299</p>
<p>Description: The MacBook Pro is a powerful laptop designed for
professionals. It features a high-resolution Retina display, fast processors, and
ample storage.</p>
</div>
</div>
<div class="product">
<h2>Printer</h2>
<img src="printer.jpg" alt="Printer">
<div class="product-details">
<p>Brand: HP</p>
<p>Model: OfficeJet Pro 9015</p>
<p>Price: $229</p>
<p>Description: The HP OfficeJet Pro 9015 is an all-in-one printer that offers
fast printing, scanning, and copying. It's perfect for small businesses or home
offices.</p>
</div>
</div>
<div class="product">
<h2>Scanner</h2>
<img src="scanner.jpg" alt="Scanner">
<div class="product-details">
<p>Brand: Canon</p>
<p>Model: CanoScan LiDE 300</p>
<p>Price: $79</p>
<p>Description: The Canon CanoScan LiDE 300 is a compact and affordable
scanner that offers high-quality scanning of documents and photos. It's perfect for
home or office use.</p>
</div>
</div>
</div>
</body>
</html>
Output:
Aim: Create a webpage for student registration form(include address,
gender(radiobutton),qualification(select box),languages known(checkbox))