Professional Documents
Culture Documents
Objec ve:
Design Cart Page with following op on
a. CART PAGE: The cart page should contain the details of added books in cart
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background-color: #f2f2f2;
margin: 0;
padding: 0;
header {
background-color: #333;
color: # f;
text-align: center;
padding: 10px;
}
ti
ti
ff
ti
ti
ti
h1 {
margin: 0;
.container {
max-width: 800px;
padding: 20px;
background-color: # f;
table {
width: 100%;
border-collapse: collapse;
th, td {
text-align: le ;
padding: 10px;
th {
background-color: #f2f2f2;
.checkout-bu on {
tt
tt
ft
ff
display: block;
width: 100%;
padding: 10px;
background-color: #333;
color: # f;
text-align: center;
font-weight: bold;
.checkout-bu on:hover {
background-color: #555;
</style>
</head>
<body>
<header>
<h1>Shopping Cart</h1>
</header>
<div class="container">
<table>
<tr>
<th>Title</th>
<th>Author</th>
<th>Price</th>
<th>Quan ty</th>
<th>Total</th>
</tr>
ff
tt
ti
ti
<!-- Sample book entries -->
<tr>
<td>Author 1</td>
<td>100 Rupee</td>
<td>2</td>
<td>200 rupee</td>
</tr>
<tr>
<td>Author 2</td>
<td>200 Rupee</td>
<td>1</td>
<td>200 Rupee</td>
</tr>
</table>
</div>
</body>
</html>
Experiment- 04 ( Output)
tt