|
1 | | -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8" /> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
6 | 6 | <title>My form exercise</title> |
7 | 7 | <meta name="description" content="" /> |
8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
9 | | - <link rel="stylesheet" href="style.css"> |
| 9 | + <link rel="stylesheet" href="style.css" /> |
10 | 10 | </head> |
11 | 11 | <body> |
12 | | - |
13 | 12 | <main> |
14 | | - <h1>Product Pick</h1> |
| 13 | + <h1>Product Pick</h1> |
15 | 14 | <form> |
16 | | - |
17 | 15 | <label for="name">Customer Name:</label> |
18 | 16 |
|
19 | | -<input |
20 | | - type="text" |
21 | | - id="name" |
22 | | - name="name" |
23 | | - required |
24 | | - pattern=".*\S.{1,}.*" |
25 | | -> |
26 | | -<br><br> |
27 | | -<label for="email">Email Address:</label> |
| 17 | + <input |
| 18 | + type="text" |
| 19 | + id="name" |
| 20 | + name="name" |
| 21 | + required |
| 22 | + pattern=".*\S.{1,}.*" |
| 23 | + /> |
| 24 | + <br /><br /> |
| 25 | + <label for="email">Email Address:</label> |
28 | 26 |
|
29 | | -<input |
30 | | - type="email" |
31 | | - id="email" |
32 | | - name="email" |
33 | | - required |
34 | | -> |
35 | | -<br><br> |
36 | | -<label for="colour">T-Shirt Colour:</label> |
| 27 | + <input type="email" id="email" name="email" required /> |
| 28 | + <br /><br /> |
| 29 | + <label for="colour">T-Shirt Colour:</label> |
37 | 30 |
|
38 | | -<select id="colour" name="colour" required> |
39 | | - <option value="">Select a colour</option> |
40 | | - <option value="black">Black</option> |
41 | | - <option value="white">White</option> |
42 | | - <option value="blue">Yellow</option> |
| 31 | + <select id="colour" name="colour" required> |
| 32 | + <option value="">Select a colour</option> |
| 33 | + <option value="black">Black</option> |
| 34 | + <option value="white">White</option> |
| 35 | + <option value="blue">Yellow</option> |
| 36 | + </select> |
| 37 | + <br /><br /> |
| 38 | + <p>T-Shirt Size:</p> |
| 39 | + <br /> |
| 40 | + <div class="sizes"> |
| 41 | + <input type="radio" id="xs" name="size" value="XS" required /> |
| 42 | + <label for="xs">XS</label> |
43 | 43 |
|
44 | | -</select> |
45 | | -<br><br> |
46 | | -<p>T-Shirt Size:</p> |
47 | | -<br> |
48 | | -<div class="sizes"> |
| 44 | + <input type="radio" id="s" name="size" value="S" /> |
| 45 | + <label for="s">S</label> |
49 | 46 |
|
50 | | - <input type="radio" id="xs" name="size" value="XS" required> |
51 | | - <label for="xs">XS</label> |
| 47 | + <input type="radio" id="m" name="size" value="M" /> |
| 48 | + <label for="m">M</label> |
52 | 49 |
|
53 | | - <input type="radio" id="s" name="size" value="S"> |
54 | | - <label for="s">S</label> |
| 50 | + <input type="radio" id="l" name="size" value="L" /> |
| 51 | + <label for="l">L</label> |
55 | 52 |
|
56 | | - <input type="radio" id="m" name="size" value="M"> |
57 | | - <label for="m">M</label> |
| 53 | + <input type="radio" id="xl" name="size" value="XL" /> |
| 54 | + <label for="xl">XL</label> |
58 | 55 |
|
59 | | - <input type="radio" id="l" name="size" value="L"> |
60 | | - <label for="l">L</label> |
61 | | - |
62 | | - <input type="radio" id="xl" name="size" value="XL"> |
63 | | - <label for="xl">XL</label> |
64 | | - |
65 | | - <input type="radio" id="xxl" name="size" value="XXL"> |
66 | | - <label for="xxl">XXL</label> |
67 | | - |
68 | | -</div> |
69 | | -<br><br> |
70 | | -<button type="submit">Place Order</button> |
| 56 | + <input type="radio" id="xxl" name="size" value="XXL" /> |
| 57 | + <label for="xxl">XXL</label> |
| 58 | + </div> |
| 59 | + <br /><br /> |
| 60 | + <button type="submit">Place Order</button> |
71 | 61 | </form> |
72 | 62 | <p>By Dan Mears</p> |
73 | 63 | </main> |
74 | | - |
75 | 64 | </body> |
76 | 65 | </html> |
0 commit comments