|
4 | 4 | <meta charset="utf-8" /> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
6 | 6 | <title>My form exercise</title> |
7 | | - <meta name="description" content="" /> |
| 7 | + <meta name="description" content="T-shirt order form where customers choose their size and colour." /> |
8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 9 | + |
9 | 10 | </head> |
10 | 11 | <body> |
11 | 12 | <header> |
12 | 13 | <h1>Product Pick</h1> |
13 | 14 | </header> |
14 | | - <main> |
| 15 | + <main class="container"> |
15 | 16 | <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--> |
| 17 | + |
| 18 | + <div class="form-group"> |
| 19 | + <label for="name">Name</label> |
| 20 | + <input type="text" name="name" id="name" required minlength="2" pattern=".*\S.*\S.*" placeholder="Enter your full name"> |
| 21 | + </div> |
| 22 | + |
| 23 | + <div class="form-group"> |
| 24 | + <label for="email">Email</label> |
| 25 | + <input type="email" name="email" id="email" required placeholder="Enter your email"> |
| 26 | + </div> |
| 27 | + <div class="form-group"> |
| 28 | + <label for="colour">T-Shirt Colour</label> |
| 29 | + <select id="colour" name="colour" required> |
| 30 | + <option value="">Select a colour</option> |
| 31 | + <option value="black">Black</option> |
| 32 | + <option value="white">White</option> |
| 33 | + <option value="red">Red</option> |
| 34 | + </select> |
| 35 | + </div> |
| 36 | + <div class="form-group"> |
| 37 | + <label for="size">T-Shirt Size</label> |
| 38 | + <select id="size" name="size" required> |
| 39 | + <option value="">Select a size</option> |
| 40 | + <option value="xs">XS</option> |
| 41 | + <option value="s">S</option> |
| 42 | + <option value="m">M</option> |
| 43 | + <option value="l">L</option> |
| 44 | + <option value="xl">XL</option> |
| 45 | + <option value="xxl">XXL</option> |
| 46 | + </select> |
| 47 | + </div> |
| 48 | + |
| 49 | + <button type="submit">Place Order</button> |
20 | 50 | </form> |
21 | 51 | </main> |
22 | 52 | <footer> |
23 | 53 | <!-- change to your name--> |
24 | | - <p>By HOMEWORK SOLUTION</p> |
| 54 | + <p>By Liyema Mfengwana</p> |
25 | 55 | </footer> |
26 | 56 | </body> |
27 | 57 | </html> |
0 commit comments