makispaiktis

Codecademy - Checkboxes App

Aug 14th, 2019 (edited)
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.00 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en" dir="ltr">
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <link rel="stylesheet" type="text/css" href="style.css">
  6.     <link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet">
  7.     <title>Checkbox Input</title>
  8.   </head>
  9.   <body>
  10.     <section id="overlay">
  11.       <img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-6/htmlcss1-img_burger-logo.svg" alt="Davie's Burgers Logo" id="logo">
  12.       <hr>
  13.       <form>
  14.         <h1>Create a burger!</h1>
  15.         <section class="protein">
  16.           <label for="patty">What type of protein would you like?</label>
  17.                 <input type="text" name="patty" id="patty">
  18.         </section>
  19.         <hr>
  20.         <section class="patties">
  21.           <label for="amount">How many patties would you like?</label>
  22.           <input type="number" name="amount" id="amount">
  23.         </section>
  24.         <hr>
  25.         <section class="cooked">
  26.           <label for="doneness">How do you want your patty cooked</label>
  27.           <br>
  28.           <span>Rare</span>
  29.           <input type="range" name="doneness" id="doneness" value="3" min="1" max="5">
  30.           <span>Well-Done</span>
  31.         </section>
  32.         <hr>
  33.        
  34.         <section class="toppings">
  35.           <span>What toppings would you like?</span>
  36.           <br>
  37.           <!--Add your code below for the first checkbox-->
  38.                    
  39.                     <label for="lettuce">Lettuce</label>
  40.           <!--Add your code below for the second checkbox-->
  41.                     <input type="checkbox" name="topping"
  42.                 id="lettuce" value="lettuce">
  43.          
  44.           <label for="tomato">Tomato</label>
  45.           <!--Add your code below for the third checkbox-->
  46.                     <input type="checkbox" name="topping"
  47.                 id="tomato" value="tomato">
  48.                     <label for="onion">Onion</label>
  49.           <input type="checkbox" name="topping"
  50.                 id="onion" value="onion">
  51.          
  52.         </section>
  53.        
  54.       </form>
  55.     </section>
  56.   </body>
  57. </html>
Add Comment
Please, Sign In to add comment