|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8" /> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 6 | + <link rel="stylesheet" href="./style.css"> |
6 | 7 | <title>My form exercise</title> |
7 | 8 | <meta name="description" content="" /> |
8 | 9 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
9 | 10 | </head> |
10 | 11 | <body> |
| 12 | + <div class="container"> |
11 | 13 | <header> |
12 | 14 | <h1>Product Pick</h1> |
13 | 15 | </header> |
14 | 16 | <main> |
15 | 17 | <form> |
16 | | - <!-- write your html here--> |
17 | | - <!-- |
18 | | - try writing out the requirements first as comments |
19 | | - this will also help you fill in your PR message later--> |
| 18 | + <div class="field"> |
| 19 | + <label for="customer_name">Name :</label> |
| 20 | + <input minlength="2" required type="text" id="customer_name" name="customer_name"> |
| 21 | + </div> |
| 22 | + <div class="field"> |
| 23 | + <label for="email">Email :</label> |
| 24 | + <input required type="email" name="email" id="email"> |
| 25 | + </div> |
| 26 | + <div class="field"> |
| 27 | + <label for="colour">Colour choice :</label> |
| 28 | + <select required id="colour" name="colour"> |
| 29 | + <option selected value="">--Please Select--</option> |
| 30 | + <option value="red">Red</option> |
| 31 | + <option value="black">Black</option> |
| 32 | + <option value="white">White</option> |
| 33 | + </select> |
| 34 | + </div> |
| 35 | + <div class="field"> |
| 36 | + <label for="size">Size :</label> |
| 37 | + <select required id="size" name="size"> |
| 38 | + <option selected value="">--Please Select--</option> |
| 39 | + <option value="XS">XS</option> |
| 40 | + <option value="S">S</option> |
| 41 | + <option value="M">M</option> |
| 42 | + <option value="L">L</option> |
| 43 | + <option value="XL">XL</option> |
| 44 | + <option value="XXL">XXL</option> |
| 45 | + </select> |
| 46 | + </div> |
| 47 | + |
| 48 | + <div class="submit_field"> |
| 49 | + <input class="submit_button" type="submit" value="Submit"> |
| 50 | + </div> |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
20 | 55 | </form> |
21 | 56 | </main> |
22 | 57 | <footer> |
23 | 58 | <!-- change to your name--> |
24 | 59 | <p>By HOMEWORK SOLUTION</p> |
25 | 60 | </footer> |
| 61 | + </div> |
26 | 62 | </body> |
27 | 63 | </html> |
0 commit comments