Advertisement
makispaiktis

Codecademy - 3rd Exercise - Forms (HTML)

Aug 26th, 2019 (edited)
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.68 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en" dir="ltr">
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <link rel="stylesheet" href="style.css">
  6.     <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
  7.     <title>Form a Story</title>
  8.   </head>
  9.   <body>
  10.     <section id="top">
  11.       <img src="https://s3.amazonaws.com/codecademy-content/courses/learn-html-forms/formAStoryLogo.svg" alt="Form A Story Logo">
  12.     </section>
  13.  
  14.     <section id="main">
  15.       <h1>Complete the Form -<br> Complete the Story!</h1>
  16.       <hr>
  17.       <!--Add your form below:-->
  18.       <form action="story.html" method="GET">
  19.        
  20.         <label for="animal-1">Animal:</label>
  21.         <input id="animal-1" name="animal-1" type="text" required>
  22.         <br>
  23.         <label for="animal-2">Another Animal:</label>
  24.         <input id="animal-2" name="animal-2" type="text" required>
  25.         <br>
  26.         <label for="animal-3">One more animal:</label>
  27.         <input id="animal-3" name="animal-3" type="text" required>
  28.         <br>
  29.         <br>
  30.         <label for="adj-1">Adjective (past tense)</label>
  31.         <input id="adj-1" name="adj-1" type="text" required>
  32.         <br>
  33.         <label for="verb-1">Verb (ends in -ing)</label>
  34.         <input id="verb-1" name="verb-1" type="text" required>
  35.         <br>
  36.         <br>
  37.         <label for="num-1">Number:</label>
  38.         <input id="num-1" name="num-1" type="number" required>
  39.         <br>
  40.         <br>
  41.         <span>Yes or No</span>
  42.         <br>
  43.         <input id="yes" name="answer" type="radio" value="yes">
  44.         <label for="yes">Yes</label>
  45.         <input id="no" name="answer" type="radio" value="no">
  46.         <label for="no">No</label>
  47.         <br>
  48.         <br>
  49.         <label for="speed">Relative speed (ends in -er)</label>
  50.         <select id="speed" name="speed" required>
  51.             <option value="faster">Faster</option>
  52.           <option value="slower">Slower</option>
  53.         </select>
  54.         <br>
  55.         <label for="quote">Motivational Quote:</label>
  56.         <input id="quote" name="quote" type="text" list="quote-choices" required>
  57.         <datalist id="quote-choices">
  58.             <option value="Quote1">Quote1</option>
  59.           <option value="Quote2">Quote2<option>
  60.           <option value="Quote3">Quote3<option>
  61.           <option value="Quote4">Quote4</option>
  62.         </datalist>
  63.         <br>
  64.         <br>
  65.         <label for="message">Meaningful Message</label>
  66.         <textarea id="message" name="message" rows="8" cols="40" required>Meaningful Message</textarea>
  67.          
  68.         <form>
  69.           <input type="submit" value="Form my Story">
  70.         </form>  
  71.       </form>  
  72.      
  73.     </section>
  74.   </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement