|
1 | | -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="en"> |
3 | | -<head> |
4 | | - |
5 | | - <meta charset="UTF-8"> |
6 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
7 | 6 | <title>My form exercise work</title> |
8 | | - <link rel="stylesheet" href="Untitled-1.css"> |
9 | | -</head> |
10 | | - |
11 | | -<body> |
12 | | - <h1>PRODUCT PICK</h1> |
13 | | - |
14 | | - <form action="T-shirt.html" method="GET" class="form"> |
| 7 | + <link rel="stylesheet" href="Untitled-1.css" /> |
| 8 | + </head> |
| 9 | + <body> |
| 10 | + <main> |
| 11 | + <h1>PRODUCT PICK</h1> |
15 | 12 |
|
16 | | - <div> |
17 | | - <label for="name">NAME</label> |
18 | | - <input type="text" name="name" id="name" placeholder="name" value="name" minlength="2" maxlength="100" required> |
19 | | - </div> |
| 13 | + <form action="T-shirt.html" method="GET" class="form"> |
| 14 | + <div> |
| 15 | + <label for="name">NAME</label> |
| 16 | + <input |
| 17 | + type="text" |
| 18 | + name="name" |
| 19 | + id="name" |
| 20 | + placeholder="name" |
| 21 | + minlength="2" |
| 22 | + maxlength="100" |
| 23 | + required |
| 24 | + /> |
| 25 | + </div> |
20 | 26 |
|
21 | | - <div> |
22 | | - |
23 | | - <label for="email">EMAIL</label> |
24 | | - <input type="email" name="email" id="email" placeholder="email" value="email" required> |
25 | | - </div> |
| 27 | + <div> |
| 28 | + <label for="email">EMAIL</label> |
| 29 | + <input |
| 30 | + type="email" |
| 31 | + name="email" |
| 32 | + id="email" |
| 33 | + placeholder="email" |
| 34 | + required |
| 35 | + /> |
| 36 | + </div> |
26 | 37 |
|
27 | | - <div> |
28 | | - |
29 | | - <label for="colour">colour of T-shirt</label> |
30 | | - <select name="colour" id="colour" required> |
31 | | - <option value="" disabled selected hidden>Please choose a colour</option> |
| 38 | + <div> |
| 39 | + <label for="colour">colour of T-shirt</label> |
| 40 | + <select name="colour" id="colour" required> |
| 41 | + <option value="" disabled selected hidden> |
| 42 | + Please choose a colour |
| 43 | + </option> |
32 | 44 | <option value="red">red</option> |
33 | 45 | <option value="blue">blue</option> |
34 | 46 | <option value="green">green</option> |
35 | | - </select> |
36 | | - </div> |
| 47 | + </select> |
| 48 | + </div> |
37 | 49 |
|
38 | | - <div> |
39 | | - T-shirt size |
40 | | - <label for="size">size of T-shirt</label> |
| 50 | + <div> |
| 51 | + T-shirt size |
| 52 | + <label for="size">size of T-shirt</label> |
41 | 53 |
|
42 | | - <select name="size" id="size" required> |
43 | | - <option value="" disabled selected hidden>Select size</option> |
| 54 | + <select name="size" id="size" required> |
| 55 | + <option value="" disabled selected hidden>Select size</option> |
44 | 56 | <option value="XS">XS</option> |
45 | 57 | <option value="S">S</option> |
46 | 58 | <option value="M">M</option> |
47 | 59 | <option value="L">L</option> |
48 | 60 | <option value="XL">XL</option> |
49 | 61 | <option value="XXL">XXL</option> |
50 | | - </select> |
51 | | - </div> |
| 62 | + </select> |
| 63 | + </div> |
52 | 64 |
|
53 | | - <button>Submit</button> |
54 | | - </form> |
55 | | -</body> |
| 65 | + <button type="submit">Submit</button> |
| 66 | + <p> |
| 67 | + We are selling T-shirts. this is a form to collect the following data: |
| 68 | + Our customers already have accounts, so we know their addresses and |
| 69 | + charging details already. We don't need to collect that data. We want |
| 70 | + to confirm they are the right person, then get them to choose a colour |
| 71 | + and size. |
| 72 | + </p> |
| 73 | + </form> |
| 74 | + </main> |
| 75 | + </body> |
56 | 76 | </html> |
57 | | - |
58 | | - |
|
0 commit comments