Pizza Website: Self-Paced Work
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
ullist of locations, add anotherlielement with the new location - In the
selectdropdown of pizza sizes, add anotheroptionelement with the new size option - In the toppings section, add another
pelement containing a checkboxinputand 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 anh3header that says "Crust Type" - Under the
h3, add aselectelement - Within the
selectelement, addoptionelements for each crust type- Note that the
optionelements are children of theselectelement
- 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 anh3header that says "Spiciness" - Under the
h3, add a newpelement - Within the
pelement, add text that says "0" - To the right of the "0", still within the
pelement, add aninputelement - Set the
typeof theinputelement 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
h3header that says "Special Instructions" - Under the
h3, addtextareaelement
(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
h3header that says "Order Type" - Under the
h3, add a newpelement - Within the
pelement, add aninputthat will appear as a radio button - Next to the
inputelement (still within thep), add the text "Pick-up" - Repeat the steps above to create a
pelement 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
nameattribute on bothinputelements 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.htmlin the same folder as your current HTML file - Add the basic
htmlandbodytags to the new HTML file - Copy the "Order Form" code, including all of the fields and the submit button, into the
OrderForm.htmlfile - Remove all of the "Order Form" code from the main HTML file
- Finally, add an
aanchor tag to the main HTML file- It should link to the
OrderForm.htmlfile - The text content for the link should be "Order Now"
- It should link to the