|
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" /> |
8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1" />
|
9 | 9 | </head>
|
10 | 10 | <body>
|
11 | 11 | <header>
|
12 | 12 | <h1>Product Pick</h1>
|
13 | 13 | </header>
|
| 14 | + |
14 | 15 | <main>
|
15 | 16 | <form>
|
16 | 17 | <!-- write your html here-->
|
| 18 | + <!-- Customer Name --> |
| 19 | + <label for="name">Full Name:</label> |
| 20 | + <input |
| 21 | + type="text" |
| 22 | + id="name" |
| 23 | + name="name" |
| 24 | + required |
| 25 | + minlength="2" |
| 26 | + placeholder="Enter your full name" |
| 27 | + /> |
| 28 | + <br /><br /> |
| 29 | + |
| 30 | + <!-- Email --> |
| 31 | + <label for="email">Email Address:</label> |
| 32 | + <input |
| 33 | + type="email" |
| 34 | + id="email" |
| 35 | + name="email" |
| 36 | + required |
| 37 | + placeholder="example@example.com" |
| 38 | + /> |
| 39 | + <br /><br /> |
| 40 | + |
| 41 | + <!-- T-shirt Colour --> |
| 42 | + <fieldset> |
| 43 | + <legend>Choose your T-shirt colour:</legend> |
| 44 | + <input type="radio" id="red" name="color" value="Red" required /> |
| 45 | + <label for="red">Red</label><br /> |
| 46 | + |
| 47 | + <input type="radio" id="blue" name="color" value="Blue" /> |
| 48 | + <label for="blue">Blue</label><br /> |
| 49 | + |
| 50 | + <input type="radio" id="black" name="color" value="Black" /> |
| 51 | + <label for="black">Black</label> |
| 52 | + </fieldset> |
| 53 | + <br /> |
| 54 | + |
| 55 | + <!-- T-shirt Size --> |
| 56 | + <label for="size">Choose your T-shirt size:</label> |
| 57 | + <select id="size" name="size" required> |
| 58 | + <option value="" disabled selected>Select size</option> |
| 59 | + <option value="XS">XS</option> |
| 60 | + <option value="S">S</option> |
| 61 | + <option value="M">M</option> |
| 62 | + <option value="L">L</option> |
| 63 | + <option value="XL">XL</option> |
| 64 | + <option value="XXL">XXL</option> |
| 65 | + </select> |
| 66 | + <br /><br /> |
| 67 | + |
| 68 | + <button type="submit">Submit Order</button> |
17 | 69 | <!--
|
18 | 70 | try writing out the requirements first as comments
|
19 | 71 | this will also help you fill in your PR message later-->
|
|
0 commit comments