|
12 | 12 | <h1>Product Pick</h1> |
13 | 13 | </header> |
14 | 14 | <main> |
15 | | -<form> |
| 15 | + <form> |
16 | 16 |
|
17 | | - <label for="name">Name:</label> |
18 | | - <input type="text" id="name" name="name"><br> |
19 | | - <label for="email">Email:</label> |
20 | | - <input type="email" id="email" name="email"><br><br> |
| 17 | + <label for="name">Name:</label> |
| 18 | + <input type="text" id="name" name="name" minlength="2" required ><br> |
| 19 | + <label for="email">Email:</label> |
| 20 | + <input type="email" id="email" name="email"><br><br> |
21 | 21 |
|
22 | | - <fieldset> |
23 | | - <legend>colour:</legend> |
| 22 | + <fieldset> |
| 23 | + <legend>colour:</legend> |
24 | 24 |
|
25 | | - <label> |
26 | | - <input type="radio" id="colour-red" name="colour" value="red"> |
27 | | - Red |
28 | | - </label> |
29 | | - |
30 | | - <label > |
31 | | - <input type="radio" id="colour-blue" name="colour" value="blue"> |
32 | | - Blue |
33 | | - </label> |
34 | | - |
35 | | - <label > |
36 | | - <input type="radio" id="colour-green" name="colour" value="green"> |
37 | | - Green |
38 | | - </label> |
39 | | - |
40 | | - </fieldset> |
| 25 | + <label> |
| 26 | + <input type="radio" id="colour-red" name="colour" value="red" required> |
| 27 | + Red |
| 28 | + </label> |
| 29 | + |
| 30 | + <label > |
| 31 | + <input type="radio" id="colour-blue" name="colour" value="blue"> |
| 32 | + Blue |
| 33 | + </label> |
| 34 | + |
| 35 | + <label > |
| 36 | + <input type="radio" id="colour-green" name="colour" value="green"> |
| 37 | + Green |
| 38 | + </label> |
| 39 | + |
| 40 | + </fieldset> |
41 | 41 |
|
42 | | - <label for="size">choose your size</label> |
43 | | - |
| 42 | + <p for="size">Choose your size</p> |
44 | 43 |
|
45 | | - <select id="size"> |
46 | | - <option value="s">small</option> |
47 | | - <option value="m">medium</option> |
48 | | - <option value="l">large</option> |
49 | | - <option value="xl">xlarge</option> |
50 | | - <option value="xl">xxlarge</option> |
| 44 | + <select id="size" name="size" required> |
| 45 | + <option value="s">Small</option> |
| 46 | + <option value="m">Medium</option> |
| 47 | + <option value="l">Large</option> |
| 48 | + <option value="xl">XLarge</option> |
| 49 | + <option value="xl">XXLarge</option> |
51 | 50 |
|
52 | | - </select> |
53 | | - </form> |
| 51 | + </select> |
| 52 | + </form> |
54 | 53 | </main> |
55 | 54 | <footer> |
56 | 55 | <p>Anita Amirhaeri</p> |
|
0 commit comments