|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | | - <meta charset="utf-8"> |
5 | | - <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
6 | 6 | <title>My form exercise</title> |
7 | | - <meta name="description" content=""> |
8 | | - <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 7 | + <meta name="description" content="" /> |
| 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 | <main> |
15 | 15 | <form> |
16 | | - <label for="user-name">Your Name:</label> |
17 | | -<input id="user-name" type="text" pattern="[A-Za-z\s]{2,}" title="Please enter at least 2 letters. Numbers and symbols are not allowed" required> |
18 | | - |
19 | | - |
20 | | -<br> |
21 | | - |
22 | | -<label for="email">Your Email:</label> |
23 | | -<input id="email" type="email" required> |
24 | | -<button id="go"> Go |
25 | | -</button> |
26 | | - |
27 | | -<br> |
28 | | - |
29 | | -<label for="colors">Choose your favorite color:</label> |
30 | | -<select id="colors" name="colour" required> |
31 | | - <option value="" disabled selected>Select a color...</option> |
32 | | - <option value="red">Red</option> |
33 | | - <option value="blue">Blue</option> |
34 | | - <option value="green">Green</option> |
35 | | -</select> |
36 | | - |
37 | | -<br> |
38 | | - |
39 | | -<label for="shirtsize">What size do you want?</label> |
40 | | - |
41 | | -<select id="shirtsize" name="size" required> |
42 | | - <option value="" disabled selected>Select a size...</option> |
43 | | - <option value="red">S</option> |
44 | | - <option value="blue">M</option> |
45 | | - <option value="green">L</option> |
46 | | - <option value="green">XL</option> |
47 | | - <option value="green">XXL</option> |
48 | | -</select> |
| 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--> |
49 | 20 | </form> |
50 | 21 | </main> |
51 | 22 | <footer> |
52 | 23 | <!-- change to your name--> |
53 | 24 | <p>By HOMEWORK SOLUTION</p> |
54 | 25 | </footer> |
55 | 26 | </body> |
56 | | -</html> |
57 | | - <footer> |
58 | | - <!-- change to your name--> |
59 | | - <p>By HOMEWORK SOLUTION</p> |
60 | | - </footer> |
61 | | - </body> |
62 | 27 | </html> |
0 commit comments