Index.html*
<!DOCTYPE html>
<html>
<head>
<title>Happy Teacher's Day!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Happy Teacher's Day!</h1>
</header>
<main>
<section>
<h2>Dear Teachers...</h2>
<p>Thank you for your tireless efforts in shaping young minds and inspiring future generations. Your dedication, patience, and guidance have made a lasting impact on our lives.</p>
</section>
<section>
<h2>Why Teachers Matter</h2>
<p>Teachers are the pillars of society, building a strong foundation for our future. They instill knowledge, values, and skills that help us grow into compassionate and responsible individuals.</p>
</section>
<section>
<h2>Show Your Appreciation!</h2>
<p>Leave a message for your teacher!</p>
<form>
<textarea id="message" name="message"></textarea>
<button id="submit">Submit</button>
</form>
</section>
</main>
<footer>
<h2>Messages from Grateful Students:</h2>
<div id="messages"></div>
</footer>
<script src="script.js"></script>
</body>
</html>
Style.css
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
main {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
}
section {
background-color: #fff;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1, h2 {
color: #333;
}
p {
color: #666;
}
form {
width: 100%;
}
textarea {
width: 100%;
height: 100px;
padding: 10px;
font-size: 16px;
}
button {
background-color: #333;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #444;
}
#messages {
padding: 20px;
background-color: #fff