|
1 | | -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8" /> |
|
7 | 7 | <meta name="description" content="" /> |
8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
9 | 9 |
|
10 | | - <link rel="Stylesheet" href="Mystyle.css" /> |
| 10 | + <link rel="stylesheet" href="mystyle.css" /> |
11 | 11 | </head> |
12 | 12 | <body> |
13 | 13 | <header> |
14 | 14 | <h1>T-Shirt Order</h1> |
15 | 15 | </header> |
16 | 16 | <main> |
17 | | - <h2> Verify your order and details below:</h2> |
| 17 | + <h2>Verify your order and details below:</h2> |
18 | 18 | <form> |
19 | | - |
20 | 19 | <!-- REQUIREMENTS: |
21 | 20 | Each requirement is listed as a comment with the corresponding code below it--> |
22 | 21 |
|
23 | | - <div class="container"> |
24 | | - |
25 | | - <!-- 1.Customer's name - ensure it contains at least two non-space characters. --> |
26 | | - <div> |
27 | | - <p> |
28 | | - <label>Full Name: |
29 | | - <input type = "text" id = "name" name = "name"> |
30 | | - </label> |
31 | | - </p> |
32 | | - </div> |
33 | | - |
34 | | - <!-- 2.Customer's email - Email must be valid and follow consistent pattern. --> |
35 | | - <div> |
36 | | - <p> |
37 | | - <label>Email: |
38 | | - <input type = "email" id = "mail" name = "User Email"> |
39 | | - </label> |
40 | | - </p> |
41 | | - </div> |
42 | | - |
43 | | - <!-- 3.T-Shirt colours - Provide 3 options, ensure right option can be picked. --> |
44 | | - <div> |
45 | | - <p> |
46 | | - <label for="T-Shirt-Colour"> T-Shirt Colour: </label> |
47 | | - <select name="T-Shirt-Colour" id="T-Shirt-Colour"> |
48 | | - |
49 | | - <option selected disabled > Select a colour </option> |
50 | | - |
51 | | - <option label="Red" value="Red"> Red </option> |
52 | | - |
53 | | - <option label="Blue" value="Blue"> Blue </option> |
54 | | - |
55 | | - <option label="Yellow" value="Yellow"> Yellow </option> |
56 | | - </select> |
57 | | - </p> |
58 | | - </div> |
59 | | - |
60 | | - <!-- 4.Provide size options -XS, S, M, L, XL, XXL --> |
61 | | - <div> |
62 | | - <p>T-Shirt Size:</p> |
63 | | - |
64 | | - <p> |
65 | | - <label>XS: |
66 | | - <input type = "radio" id = "XS" name = "Size" value = "XS"> |
| 22 | + <div class="container"> |
| 23 | + <!-- 1.Customer's name - ensure it contains at least two non-space characters. --> |
| 24 | + <div> |
| 25 | + <p> |
| 26 | + <label |
| 27 | + >Full Name: |
| 28 | + <input type="text" id="name" name="name" /> |
| 29 | + </label> |
| 30 | + </p> |
| 31 | + </div> |
| 32 | + |
| 33 | + <!-- 2.Customer's email - Email must be valid and follow consistent pattern. --> |
| 34 | + <div> |
| 35 | + <p> |
| 36 | + <label |
| 37 | + >Email: |
| 38 | + <input type="email" id="mail" name="User Email" /> |
| 39 | + </label> |
| 40 | + </p> |
| 41 | + </div> |
| 42 | + |
| 43 | + <!-- 3.T-Shirt colours - Provide 3 options, ensure right option can be picked. --> |
| 44 | + <div> |
| 45 | + <p> |
| 46 | + <label for="t-shirt-colour"> T-Shirt Colour: </label> |
| 47 | + <select name="t-shirt-colour" id="t-shirt-colour"> |
| 48 | + <option selected disabled>Select a colour</option> |
| 49 | + |
| 50 | + <option label="Red" value="Red">Red</option> |
| 51 | + |
| 52 | + <option label="Blue" value="Blue">Blue</option> |
| 53 | + |
| 54 | + <option label="Yellow" value="Yellow">Yellow</option> |
| 55 | + </select> |
| 56 | + </p> |
| 57 | + </div> |
| 58 | + |
| 59 | + <!-- 4.Provide size options -XS, S, M, L, XL, XXL --> |
| 60 | + <div> |
| 61 | + <p>T-Shirt Size:</p> |
| 62 | + |
| 63 | + <p> |
| 64 | + <label |
| 65 | + >XS: |
| 66 | + <input type="radio" id="XS" name="Size" value="XS" /> |
67 | 67 | </label> |
68 | 68 |
|
69 | | - <label>S: |
70 | | - <input type = "radio" id = "S" name = "Size" value = "S"> |
| 69 | + <label |
| 70 | + >S: |
| 71 | + <input type="radio" id="S" name="Size" value="S" /> |
71 | 72 | </label> |
72 | | - |
73 | | - <label>M: |
74 | | - <input type = "radio" id = "M" name = "Size" value = "M"> |
| 73 | + |
| 74 | + <label |
| 75 | + >M: |
| 76 | + <input type="radio" id="M" name="Size" value="M" /> |
75 | 77 | </label> |
76 | 78 |
|
77 | | - <label>L: |
78 | | - <input type = "radio" id = "L" name = "Size" value = "L"> |
| 79 | + <label |
| 80 | + >L: |
| 81 | + <input type="radio" id="L" name="Size" value="L" /> |
79 | 82 | </label> |
80 | | - |
81 | | - <label>XL: |
82 | | - <input type = "radio" id = "XL" name = "Size" value = "XL"> |
| 83 | + |
| 84 | + <label |
| 85 | + >XL: |
| 86 | + <input type="radio" id="XL" name="Size" value="XL" /> |
83 | 87 | </label> |
84 | | - |
85 | | - <label>XXL: |
86 | | - <input type = "radio" id = "XXL" name = "Size" value = "XXL"> |
| 88 | + |
| 89 | + <label |
| 90 | + >XXL: |
| 91 | + <input type="radio" id="XXL" name="Size" value="XXL" /> |
87 | 92 | </label> |
88 | 93 | </p> |
89 | 94 | </div> |
90 | 95 | </div> |
91 | 96 |
|
92 | | - <br> |
93 | | - |
94 | | - <div> |
95 | | - <button type="submit">Submit</button> |
96 | | - </div> |
97 | | - |
| 97 | + <br /> |
98 | 98 |
|
| 99 | + <div> |
| 100 | + <button type="submit">Submit</button> |
| 101 | + </div> |
99 | 102 | </form> |
100 | 103 | </main> |
101 | 104 | <footer> |
|
0 commit comments