item 1 Price: $8 Add Item 1 to Cart item 2 Price: $45 Add Item 2 to Cart item 3 Price: $15 Add Item 3 to Cart Cart Total: Enter Payment Amount: Confirm Purchase

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

language: HTML

 

Create a responsive webpage for food items. there are three requirements

1: when the user hovers over the item name ('item 1') the details of the item should be displayed. the text should return back to the original (aka from the food description to the food name ) after the mouse pointer moves away

 

2. When the user clicks 'add to cart' for an item, the 'cart total' is updated, and the button to add the item to the cart is disabled so that it cannot be added twice.

3. the user can input an amount into the 'confirm purchase' section and click the button. If the amount is less than the 'cart total', the following alert should be shown: 

"payment amount is less than cart total"

otherwise:

"payment complete"

 

 

 

 

 

 

 

 

This is where the title is
item 1
Price: $8
Add Item 1 to Cart
item 2
Price: $45
Add Item 2 to Cart
item 3
Price: $15
Add Item 3 to Cart
Cart Total:
Enter Payment Amount:
Confirm Purchase
Transcribed Image Text:This is where the title is item 1 Price: $8 Add Item 1 to Cart item 2 Price: $45 Add Item 2 to Cart item 3 Price: $15 Add Item 3 to Cart Cart Total: Enter Payment Amount: Confirm Purchase
<!DOCTYPE html>
<html>
<head>
<title> Store </title>
</head>
<body>
<h1> This is where the title is </hl>
<p>item 1</p>
<p>Price: $8</p>
<input type="button" value="Add Item 1 to Cart">
<p>item 2</p>
<p>Price: $45</p>
<input type="button" value="Add Item 2 to Cart">
<p>item 3</p>
<p>Price: $15</p>
<input type="button" value="Add Item 3 to Cart">
<p>Cart Total:</p>
<p>0</p>
<p>Enter Payment Amount:</p>
<input type="number">
<input type="button" value="Confirm Purchase">
<script>
</script>
</body>
</html>
Transcribed Image Text:<!DOCTYPE html> <html> <head> <title> Store </title> </head> <body> <h1> This is where the title is </hl> <p>item 1</p> <p>Price: $8</p> <input type="button" value="Add Item 1 to Cart"> <p>item 2</p> <p>Price: $45</p> <input type="button" value="Add Item 2 to Cart"> <p>item 3</p> <p>Price: $15</p> <input type="button" value="Add Item 3 to Cart"> <p>Cart Total:</p> <p>0</p> <p>Enter Payment Amount:</p> <input type="number"> <input type="button" value="Confirm Purchase"> <script> </script> </body> </html>
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY