|
12 | 12 | <h1>Product Pick</h1> |
13 | 13 | </header> |
14 | 14 | <main> |
15 | | - <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--> |
| 15 | + <form> |
| 16 | + <fieldset> |
| 17 | + <legend>Customer Information</legend> |
| 18 | + <p> |
| 19 | + <label for="customerName">Customer Name</label> |
| 20 | + <input |
| 21 | + id="customerName" |
| 22 | + name="customerName" |
| 23 | + type="text" |
| 24 | + pattern=".*\S.*\S.*" |
| 25 | + placeholder="username" |
| 26 | + required |
| 27 | + /> |
| 28 | + </p> |
| 29 | + <p> |
| 30 | + <label for="emailAddress">Email Address</label> |
| 31 | + <input |
| 32 | + id="emailAddress" |
| 33 | + name="emailAddress" |
| 34 | + type="email" |
| 35 | + placeholder="email" |
| 36 | + required |
| 37 | + /> |
| 38 | + </p> |
| 39 | + </fieldset> |
| 40 | + <fieldset> |
| 41 | + <legend>T-shirt Colour and Size</legend> |
| 42 | + <p> |
| 43 | + <input type="radio" id="red" name="colour" value="red" required /> |
| 44 | + <label for="red">Red</label> |
| 45 | + </p> |
| 46 | + <p> |
| 47 | + <input type="radio" id="green" name="colour" value="green" /> |
| 48 | + |
| 49 | + <label for="green">Green</label> |
| 50 | + </p> |
| 51 | + <p> |
| 52 | + <input type="radio" id="blue" name="colour" value="blue" /> |
| 53 | + <label for="blue">Blue</label> |
| 54 | + </p> |
| 55 | + <p> |
| 56 | + <label for="size">T-shirt Size</label> |
| 57 | + <select id="size" name="size" required> |
| 58 | + <option value="" disabled selected>Select Size</option> |
| 59 | + <option value="Xsmall">XS</option> |
| 60 | + <option value="Small">S</option> |
| 61 | + <option value="Medium">M</option> |
| 62 | + <option value="Large">L</option> |
| 63 | + <option value="XLarge">XL</option> |
| 64 | + <option value="XXLarge">XXL</option> |
| 65 | + </select> |
| 66 | + </p> |
| 67 | + </fieldset> |
| 68 | + <input type="submit" value="Submit" /> |
20 | 69 | </form> |
21 | 70 | </main> |
22 | 71 | <footer> |
23 | | - <!-- change to your name--> |
24 | | - <p>By HOMEWORK SOLUTION</p> |
| 72 | + |
| 73 | + <p>By Gustarv Nchitu</p> |
25 | 74 | </footer> |
26 | 75 | </body> |
27 | 76 | </html> |
0 commit comments