|
11 | 11 | <header>
|
12 | 12 | <h1>Product Pick</h1>
|
13 | 13 | </header>
|
14 |
| - <main> |
15 | 14 | <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--> |
20 |
| - </form> |
| 15 | + |
| 16 | + |
| 17 | + <div> |
| 18 | + <label for="name">Name:</label> |
| 19 | + <input type="text" id="name" name="name" required minlength="2" pattern="[A-Za-z ]{2,}" |
| 20 | + placeholder="Enter your full name" aria-required="true"> |
| 21 | + <small>Minimum 2 alphabetical characters (required)</small> |
| 22 | + </div> |
| 23 | + |
| 24 | + <!-- Email Field --> |
| 25 | + <div> |
| 26 | + <label for="email">Email:</label> |
| 27 | + <input type="email" id="email" name="email" required |
| 28 | + placeholder=" [email protected]" aria-required=" true" > |
| 29 | + <small>Required for order confirmation</small> |
| 30 | + </div> |
| 31 | + |
| 32 | + <!-- T-shirt Options --> |
| 33 | +<fieldset> |
| 34 | + <legend>Choose T-shirt Color</legend> |
| 35 | + <div> |
| 36 | + <input type="radio" id="color-red" name="color" value="red" required> |
| 37 | + <label for="color-red">Red</label><br> |
| 38 | + |
| 39 | + <input type="radio" id="color-blue" name="color" value="blue"> |
| 40 | + <label for="color-blue">Blue</label><br> |
| 41 | + |
| 42 | + <input type="radio" id="color-green" name="color" value="green"> |
| 43 | + <label for="color-green">Green</label> |
| 44 | + </div> |
| 45 | +</fieldset> |
| 46 | + |
| 47 | + <!-- Size Selection --> |
| 48 | +<fieldset> |
| 49 | + <legend>Choose T-shirt Size</legend> |
| 50 | + <div> |
| 51 | + <label for="size">Size:</label> |
| 52 | + <select id="size" name="size" required> |
| 53 | + <option value="" disabled selected>-- Please select --</option> |
| 54 | + <option value="XS">XS</option> |
| 55 | + <option value="S">S</option> |
| 56 | + <option value="M">M</option> |
| 57 | + <option value="L">L</option> |
| 58 | + <option value="XL">XL</option> |
| 59 | + <option value="XXL">XXL</option> |
| 60 | + </select> |
| 61 | + </div> |
| 62 | +</fieldset> |
| 63 | + |
| 64 | + <button type="submit">Place Order</button> |
| 65 | + |
| 66 | + |
| 67 | + </form> |
21 | 68 | </main>
|
22 | 69 | <footer>
|
23 | 70 | <!-- change to your name-->
|
24 |
| - <h2>By HOMEWORK SOLUTION</h2> |
| 71 | + <h2>Mouawia Elkhalifa</h2> |
25 | 72 | </footer>
|
26 | 73 | </body>
|
27 | 74 | </html>
|
0 commit comments