Assignment No.
2
[Link]
<!DOCTYPE html>
<html>
<head>
<title>Spice Delight Restaurant</title>
<!-- Internal CSS -->
<style>
body {
background-color: #f4f4f4;
font-family: Arial;
}
h1 {
color: darkred;
text-align: center;
}
table {
width: 50%;
margin: auto;
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
padding: 10px;
}
</style>
<!-- External CSS -->
<link rel="stylesheet" href="[Link]">
</head>
<body>
<!-- Heading -->
<h1>Welcome to Spice Delight</h1>
<!-- Image -->
<center>
<img src="[Link]" width="400" height="250" alt="Restaurant
Image">
</center>
<!-- List -->
<h2 style="color:green;">Menu</h2> <!-- Inline CSS -->
<ul>
<li>Paneer Butter Masala</li>
<li>Veg Biryani</li>
<li>Masala Dosa</li>
</ul>
<!-- Table -->
<h2>Price List</h2>
<table>
<tr>
<th>Item</th>
<th>Price</th>
</tr>
<tr>
<td>Paneer Butter Masala</td>
<td>₹250</td>
</tr>
<tr>
<td>Veg Biryani</td>
<td>₹200</td>
</tr>
</table>
<!-- Link -->
<p align="center">
<a href="[Link] us</a>
</p>
<!-- Form -->
<h2>Contact Us</h2>
<form>
Name: <input type="text"><br><br>
Email: <input type="email"><br><br>
Message: <textarea></textarea><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
CSS Code: [Link]
body {
margin: 20px;
}
h2 {
text-align: center;
color: blue;
}
form {
width: 300px;
margin: auto;
}