|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | | - <head> |
4 | | - <meta charset="utf-8" /> |
5 | | - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
6 | | - <title>My form exercise</title> |
7 | | - <meta name="description" content="" /> |
8 | | - <meta name="viewport" content="width=device-width, initial-scale=1" /> |
9 | | - </head> |
10 | | - <body> |
11 | | - <header> |
12 | | - <h1>Product Pick</h1> |
13 | | - </header> |
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--> |
20 | | - </form> |
21 | | - </main> |
22 | | - <footer> |
23 | | - <!-- change to your name--> |
24 | | - <h2>By HOMEWORK SOLUTION</h2> |
25 | | - </footer> |
26 | | - </body> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>T-Shirt Order Form</title> |
| 7 | +</head> |
| 8 | + |
| 9 | +<body> |
| 10 | + <header> |
| 11 | + <h1>Product Pick</h1> |
| 12 | + </header> |
| 13 | + |
| 14 | + <main> |
| 15 | + <form> |
| 16 | + <fieldset> |
| 17 | + <legend>Customer Details</legend> |
| 18 | + |
| 19 | + <div> |
| 20 | + <label for="customer">Customer Name</label> |
| 21 | + <input id="customer" name="customerName" type="text" minlength="2" required> |
| 22 | + </div> |
| 23 | + |
| 24 | + <div> |
| 25 | + <label for="email">Customer Email</label> |
| 26 | + <input id="email" name="customerEmail" type="email" required placeholder="name@example.com"> |
| 27 | + </div> |
| 28 | + </fieldset> |
| 29 | + |
| 30 | + <fieldset> |
| 31 | + <legend>T-Shirt Selection</legend> |
| 32 | + |
| 33 | + <fieldset> |
| 34 | + <legend>Choose Your Color</legend> |
| 35 | + |
| 36 | + <div> |
| 37 | + <input type="radio" id="blue" name="colour" value="blue" required> |
| 38 | + <label for="blue">Blue</label> |
| 39 | + </div> |
| 40 | + |
| 41 | + <div> |
| 42 | + <input type="radio" id="green" name="colour" value="green" required> |
| 43 | + <label for="green">Green</label> |
| 44 | + </div> |
| 45 | + |
| 46 | + <div> |
| 47 | + <input type="radio" id="red" name="colour" value="red" required> |
| 48 | + <label for="red">Red</label> |
| 49 | + </div> |
| 50 | + </fieldset> |
| 51 | + |
| 52 | + <div> |
| 53 | + <label for="size">Choose Your Size</label> |
| 54 | + <select id="size" name="size" required> |
| 55 | + <option value="">Choose a size</option> |
| 56 | + <option value="XS">XS</option> |
| 57 | + <option value="S">S</option> |
| 58 | + <option value="M">M</option> |
| 59 | + <option value="L">L</option> |
| 60 | + <option value="XL">XL</option> |
| 61 | + <option value="XXL">XXL</option> |
| 62 | + </select> |
| 63 | + </div> |
| 64 | + </fieldset> |
| 65 | + |
| 66 | + <button type="submit">Submit Order</button> |
| 67 | + </form> |
| 68 | + </main> |
| 69 | + |
| 70 | + <footer> |
| 71 | + <p>By Mouawia Elkhalifa</p> |
| 72 | + </footer> |
| 73 | +</body> |
27 | 74 | </html> |
0 commit comments