Pizza Website: Individual Exercise
The website for Alfredo's Pizza Cafe is pretty solid, but there are some changes we need to make to take it to the next level. Follow the instructions below to add some new features to Alfredo's website!
Optional: Final Project Work
You are also encouraged to work on your final project website! Think about how you might update your site with some of these new elements. If you would like to work on that, you can skip this individual work!
Part 1 - Expanding the Existing Options
Since we last visited Alfredo's, they have added a new location, a new pizza size, and a new topping! We need the website to reflect those changes.
- In the
ul
list of locations, add anotherli
element with the new location - In the
select
dropdown of pizza sizes, add anotheroption
element with the new size option - In the toppings section, add another
p
element containing a checkboxinput
and topping text
Part 2 - Crust Type
Alfredo's actually offers two crust types, "Thin Crust" and "Deep Dish" (no in-between). The user should be able to select which crust type they want on the order form via a dropdown.
- Under the "Pizza Size"
select
, add anh3
header that says "Crust Type" - Under the
h3
, add aselect
element - Within the
select
element, addoption
elements for each crust type- Note that the
option
elements are children of theselect
element
- Note that the
Part 3 - Spiciness
Alfredo's also allows customers to select the spiciness of their pie. They use values from 0 to 10, and they want users to be able to select the spicy level on the form with a sliding scale.
- Under the "Crust Type"
select
, add anh3
header that says "Spiciness" - Under the
h3
, add a newp
element - Within the
p
element, add text that says "0" - To the right of the "0", still within the
p
element, add aninput
element - Set the
type
of theinput
element so that it displays as a sliding scale - To the right of the
input
, add text that says "10"
Part 4 - Special Instructions
Alfredo's also wants to include a multi-line text box where customers can input any additional instructions for their pie.
- Under the "Address" text box, add an
h3
header that says "Special Instructions" - Under the
h3
, addtextarea
element
(BONUS 1) Order Type
Alfredo's would like to offer both pick-up and delivery to their customers. They want to use radio buttons to allow users to select the type of the order on the form
- Under the "Special Instructions" text box, add an
h3
header that says "Order Type" - Under the
h3
, add a newp
element - Within the
p
element, add aninput
that will appear as a radio button - Next to the
input
element (still within thep
), add the text "Pick-up" - Repeat the steps above to create a
p
element for "Delivery" - Finally, ensure that only one radio button can be checked at a time
- This way, selecting one option will de-select the other option
- Use the
name
attribute on bothinput
elements to accomplish this
(BONUS 2) Order Form on its own page
With all of the restaurant information and the order form on the same page, it seems a little crowded. Alfredo's would like the order form to have its own page, and there should be a link to it from the main page.
- Create a new HTML file called
OrderForm.html
in the same folder as your current HTML file - Add the basic
html
andbody
tags to the new HTML file - Copy the "Order Form" code, including all of the fields and the submit button, into the
OrderForm.html
file - Remove all of the "Order Form" code from the main HTML file
- Finally, add an
a
anchor tag to the main HTML file- It should link to the
OrderForm.html
file - The text content for the link should be "Order Now"
- It should link to the