|
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" /> |
6 | | - <title>My form exercise</title> |
7 | | - <meta name="description" content="" /> |
8 | | - <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <title>Product Pick</title> |
| 7 | + <link rel="stylesheet" href="style.css" /> |
9 | 8 | </head> |
| 9 | + |
10 | 10 | <body> |
11 | | - <header> |
12 | | - <h1>Product Pick</h1> |
13 | | - </header> |
14 | 11 | <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--> |
| 12 | + <h1>Product Pick</h1> |
| 13 | + |
| 14 | + <form action="result.html" method="GET"> |
| 15 | + <fieldset> |
| 16 | + <legend>Choose your T-shirt</legend> |
| 17 | + |
| 18 | + <label for="name">Name:</label> |
| 19 | + <input type="text" id="name" name="name" required /> |
| 20 | + |
| 21 | + <label for="colour">Colour:</label> |
| 22 | + <select id="colour" name="colour" required> |
| 23 | + <option value="">Select a colour</option> |
| 24 | + <option value="Black">Black</option> |
| 25 | + <option value="White">White</option> |
| 26 | + <option value="Blue">Blue</option> |
| 27 | + </select> |
| 28 | + |
| 29 | + <label for="size">Size:</label> |
| 30 | + <select id="size" name="size" required> |
| 31 | + <option value="">Select a size</option> |
| 32 | + <option value="Small">Small</option> |
| 33 | + <option value="Medium">Medium</option> |
| 34 | + <option value="Large">Large</option> |
| 35 | + </select> |
| 36 | + |
| 37 | + <button type="submit">Submit</button> |
| 38 | + </fieldset> |
20 | 39 | </form> |
21 | 40 | </main> |
| 41 | + |
22 | 42 | <footer> |
23 | | - <!-- change to your name--> |
24 | | - <h2>By HOMEWORK SOLUTION</h2> |
| 43 | + <h2>By Alasdair MacDonald</h2> |
25 | 44 | </footer> |
26 | 45 | </body> |
27 | 46 | </html> |
0 commit comments