WTAssignmentno2
WTAssignmentno2
Aim: Implement a web page index.htm for any client website (e.g. a restaurant website
project) using following:
a. HTML syntax: heading tags, basic tags & attributes, frames, tables, images, lists, links for
text & images, forms etc.
Code:
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<header>
</header>
<nav>
<a href="index.html">Home</a>
<a href="menu.html">Menu</a>
<a href="reservation.html">Reservations</a>
<a href="contact.html">Contact</a>
</nav>
<div class="home-content">
<div class="specialties">
<h3>Our Specialties</h3>
<ul>
<li>Signature Steak</li>
<li>Vegetarian Delight</li>
</ul>
</div>
</div>
</div>
<footer>
</footer>
</body>
</html>
styles.css
/* styles.css */
body {
margin: 0;
padding: 0;
background-color: #f4f4f4;
header {
background-color: #d32f2f;
color: white;
text-align: center;
padding: 1em 0;
nav {
background-color: #f06229;
text-align: center;
padding: 0.5em 0;
nav a {
color: white;
text-decoration: none;
nav a:hover {
background-color: #e64a19;
.container {
width: 80%;
background-color: white;
padding: 20px;
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
padding: 8px;
text-align: left;
th {
background-color: #f2f2f2;
footer {
text-align: center;
padding: 1em 0;
background-color: #333;
color: white;
.home-content {
.restaurant-image {
height: auto;
float: left;
.specialties {
}
.specialties h3 {
color: #d32f2f;
margin-bottom: 10px;
.specialties ul {
list-style: none;
padding: 0;
.specialties li {
background-color: #f9f9f9;
margin-bottom: 5px;
border-radius: 5px;
.specialties li:hover {
background-color: #f0f0f0;
menu.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<body>
<header>
</header>
<nav>
<a href="index.html">Home</a>
<a href="menu.html">Menu</a>
<a href="reservation.html">Reservations</a>
<a href="contact.html">Contact</a>
</nav>
<h2>Our Menu</h2>
<table>
<thead>
<tr>
<th>Dish</th>
<th>Description</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Appetizer 1</td>
<td>Delicious appetizer</td>
<td>$9.99</td>
</tr>
<tr>
<td>Main Course 1</td>
<td>$19.99</td>
</tr>
<tr>
<td>Dessert 1</td>
<td>$7.99</td>
</tr>
<tr>
<td>Appetizer 2</td>
<td>$11.99</td>
</tr>
<tr>
<td>$24.99</td>
</tr>
<tr>
<td>Dessert 2</td>
<td>$8.99</td>
</tr>
</tbody>
</table>
</div>
<footer>
<p>© 2024 Delicious Bites Restaurant. All rights reserved.</p>
</footer>
</body>
</html>
reservation.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<header>
</header>
<nav>
<a href="index.html">Home</a>
<a href="menu.html">Menu</a>
<a href="reservation.html">Reservations</a>
<a href="contact.html">Contact</a>
</nav>
<h2>Make a Reservation</h2>
<label for="name">Name:</label>
<label for="time">Time:</label>
</form>
</div>
<footer>
</footer>
</body>
</html>
contact.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<header>
<nav>
<a href="index.html">Home</a>
<a href="menu.html">Menu</a>
<a href="reservation.html">Reservations</a>
<a href="contact.html">Contact</a>
</nav>
<h2>Contact Us</h2>
<footer>
</footer>
</body>
</html>
Output:
Home Page:
Menu Page:
Reservations Page:
Contact Page: