CLASS 10 Lab Activity
CLASS 10 Lab Activity
1. Create a web page that serves as an invitation card to your birthday party. Use all the HTML tags along
with CSS properties you have learnt to make it attractive and lively.
Ans. Coding:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Birthday Party Invitation</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #FCE4D6;
text-align: center;
margin: 0;
padding: 0;
}
#header {
background-color: #FF6F61;
color: #FFF;
padding: 20px;
}
h1 {
font-size: 36px;
text-transform: uppercase;
}
#content {
padding: 20px;
}
p{
font-size: 18px;
color: #333;
line-height: 1.5;
}
.invitation {
background-color: #FFF;
border: 1px solid #FF6F61;
border-radius: 10px;
padding: 20px;
margin: 20px;
display: inline-block;
width: 80%;
max-width: 500px;
}
.details {
font-weight: bold;
text-decoration: underline;
color: #FF6F61;
}
.note {
font-style: italic;
}
#footer {
background-color: #FF6F61;
color: #FFF;
padding: 10px;
}
</style>
</head>
<body>
<div id="header">
<h1>Birthday Party Invitation</h1>
</div>
<div id="content">
<div class="invitation">
<p><span class="details">You're Invited!</span></p>
<p>Join us for a fun-filled birthday celebration!</p>
<p><span class="details">Date:</span> Saturday, October 15th</p>
<p><span class="details">Time:</span> 3:00 PM - 6:00 PM</p>
<p><span class="details">Location:</span> Dev Library Office Silapathar, Assam</p>
<p>We'll have games, music, delicious cake, and lots of fun! Don't forget to bring your
enthusiasm.</p>
<p class="note">Please RSVP by October 5th. We hope to see you there!</p>
</div>
</div>
<div id="footer">
Ans. Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Color Codes</title>
<style>
body {
text-align: center;
.color {
display: inline-block;
margin: 20px;
</style>
</head>
<body>
<div class="color">
<p>Color: Red</p>
</div>
<div class="color">
<p>Color: Green</p>
</div>
<div class="color">
<p>Color: Blue</p>
</div>
</body>
</html>
3. Create an HTML document on the topic HTML list and HTML Tables. The web page should contain
two frames wherein in one frame will HTML List and in other HTML Tables.
Ans. Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
body {
.section {
float: left;
width: 50%;
padding: 20px;
</style>
</head>
<body>
<div class="section">
<h2>HTML Lists</h2>
<ul>
</ul>
<ol>
</ol>
</div>
<div class="section">
<h2>HTML Tables</h2>
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</div>
</body>
</html>
4. Create a web page to form a tabular representation of different mobile names with their features.
Ans. Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Mobile Phones</title>
<style>
table {
border-collapse: collapse;
width: 80%;
th, td {
padding: 10px;
text-align: left;
th {
background-color: #333;
color: #FFF;
</style>
</head>
<body>
<table>
<tr>
<th>Mobile Name</th>
<th>Operating System</th>
<th>Camera</th>
<th>Storage</th>
</tr>
<tr>
<td>iPhone 16</td>
<td>iOS</td>
<td>24 MP dual-camera</td>
<td>128GB</td>
</tr>
<tr>
<td>Android</td>
<td>108 MP triple-camera</td>
<td>256GB</td>
</tr>
<tr>
<td>Android</td>
<td>50 MP dual-camera</td>
<td>128GB</td>
</tr>
</table>
</body>
</html>
5. Create a web page to show a list of various colours and their Hex codes (Hexadecimal numerals are
widely used by computer system designers and programmers because they provide a human – friendly
representation of binary – coded values). Also provide image for colours you mention in your code.
Ans. Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Color Codes</title>
<style>
body {
text-align: center;
.color {
display: inline-block;
margin: 20px;
</style>
</head>
<body>
<div class="color">
<p>Color: Red</p>
</div>
<div class="color">
<p>Color: Green</p>
</div>
<div class="color">
<p>Color: Blue</p>
</body>
</html>
6. Create a web page that serves as an invitation card to your birthday party. Use all the HTML tags along
with CSS properties you have learnt to make it attractive and lively.
Ans. Coding:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background-color: #FCE4D6;
text-align: center;
margin: 0;
padding: 0;
#header {
background-color: #FF6F61;
color: #FFF;
padding: 20px;
h1 {
font-size: 36px;
text-transform: uppercase;
#content {
padding: 20px;
p{
font-size: 18px;
color: #333;
line-height: 1.5;
.invitation {
background-color: #FFF;
border-radius: 10px;
padding: 20px;
margin: 20px;
display: inline-block;
width: 80%;
max-width: 500px;
.details {
font-weight: bold;
text-decoration: underline;
color: #FF6F61;
.note {
font-style: italic;
#footer {
background-color: #FF6F61;
color: #FFF;
padding: 10px;
</style>
</head>
<body>
<div id="header">
</div>
<div id="content">
<div class="invitation">
<p>We'll have games, music, delicious cake, and lots of fun! Don't forget to bring your
enthusiasm.</p>
</div>
</div>
<div id="footer">
</div>
</body>
</html>
7. Create a web page that serves as a guide for the mathematical formulas using HTML tags along with
CSS properties.
Ans. Coding:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background-color: #E3F2FD;
text-align: center;
.formula {
background-color: #FFF;
border-radius: 10px;
padding: 20px;
max-width: 500px;
</style>
</head>
<body>
<div class="formula">
<p><strong>Pythagorean Theorem:</strong></p>
<p>a² + b² = c²</p>
<p>In a right triangle, the square of the hypotenuse (the side opposite the right angle) is equal to the
sum of the squares of the other two sides.</p>
</div>
<div class="formula">
<p><strong>Quadratic Formula:</strong></p>
</div>
</body>
</html>