|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
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" /> |
9 | | - </head> |
10 | | - <body> |
11 | | - <header> |
12 | | - <h1>Product Pick</h1> |
13 | | - </header> |
14 | | - <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--> |
| 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" /> |
| 9 | + <link rel="stylesheet" href="main.css"> |
20 | 10 |
|
21 | | -<!-- first and lastname (ensure it contains at least two non-space characters.)--> |
22 | | -<!-- email (make sure the email is valid. Email addresses follow a consistent pattern.)--> |
23 | | -<!-- shirt color (I must provide 3 options. How will I ensure they do not choose other colors?)--> |
24 | | -<!-- shirt size (must provide the following 6 options: XS, S, M, L, XL, XXL)--> |
25 | | - <div class="form"> |
| 11 | +</head> |
| 12 | +<body> |
| 13 | +<header> |
| 14 | + <div class="container"> |
| 15 | + <h1>Product Pick</h1> |
| 16 | + </div> |
| 17 | +</header> |
| 18 | +<main> |
| 19 | + <div class="container"> |
| 20 | + <form> |
| 21 | + <!-- write your html here--> |
| 22 | + <!-- |
| 23 | + try writing out the requirements first as comments |
| 24 | + this will also help you fill in your PR message later--> |
26 | 25 |
|
27 | | - <div class="form-group"> |
28 | | - <label for="firstname">First Name</label> |
29 | | - <input |
30 | | - type="text" |
31 | | - id="firstname" |
32 | | - name="firstname" |
33 | | - required |
34 | | - pattern="" |
35 | | - title="" |
36 | | - > |
37 | | - </div> |
| 26 | + <!-- first and lastname (ensure it contains at least two non-space characters.)--> |
| 27 | + <!-- email (make sure the email is valid. Email addresses follow a consistent pattern.)--> |
| 28 | + <!-- shirt color (I must provide 3 options. How will I ensure they do not choose other colors?)--> |
| 29 | + <!-- shirt size (must provide the following 6 options: XS, S, M, L, XL, XXL)--> |
38 | 30 |
|
39 | | - <div class="form-group"> |
40 | | - <label for="lastname">Last Name</label> |
41 | | - <input |
42 | | - type="text" |
43 | | - id="lastname" |
44 | | - name="lastname" |
45 | | - required |
46 | | - pattern="" |
47 | | - title=""> |
48 | | - </div> |
49 | 31 |
|
50 | | - <div class="form-group"> |
51 | | - <label for="email">Email</label> |
52 | | - <input |
53 | | - type="email" |
54 | | - id="email" |
55 | | - name="email" |
56 | | - required |
57 | | - pattern="" |
58 | | - title=""> |
59 | | - </div> |
| 32 | + <div class="form-group"> |
| 33 | + <label for="firstname">First Name</label> |
| 34 | + <input |
| 35 | + type="text" |
| 36 | + id="firstname" |
| 37 | + name="firstname" |
| 38 | + required |
| 39 | + pattern="" |
| 40 | + title="" |
| 41 | + > |
| 42 | + </div> |
| 43 | + |
| 44 | + <div class="form-group"> |
| 45 | + <label for="lastname">Last Name</label> |
| 46 | + <input |
| 47 | + type="text" |
| 48 | + id="lastname" |
| 49 | + name="lastname" |
| 50 | + required |
| 51 | + pattern="" |
| 52 | + title=""> |
| 53 | + </div> |
| 54 | + |
| 55 | + <div class="form-group"> |
| 56 | + <label for="email">Email</label> |
| 57 | + <input |
| 58 | + type="email" |
| 59 | + id="email" |
| 60 | + name="email" |
| 61 | + required |
| 62 | + pattern="" |
| 63 | + title=""> |
| 64 | + </div> |
60 | 65 |
|
61 | | - <div class="form-group"> |
62 | | - <fieldset> |
63 | | - <legend>Choose a shirt color:</legend> |
64 | | - <div class="form-group-fieldset"> |
65 | | - <input |
66 | | - type="radio" |
67 | | - id="choice1" |
68 | | - name="shirt" |
69 | | - value="blue" |
70 | | - > |
71 | | - <label for="choice1">Blue</label> |
72 | | - </div> |
| 66 | + <div class="form-group"> |
| 67 | + <fieldset> |
| 68 | + <legend>Choose a shirt color:</legend> |
| 69 | + <div class="form-group-fieldset"> |
| 70 | + <input |
| 71 | + type="radio" |
| 72 | + id="choice1" |
| 73 | + name="shirt" |
| 74 | + value="blue" |
| 75 | + > |
| 76 | + <label for="choice1">Blue</label> |
| 77 | + </div> |
73 | 78 |
|
74 | | - <div class="form-group-fieldset"> |
75 | | - <input |
76 | | - type="radio" |
77 | | - id="choice2" |
78 | | - name="shirt" |
79 | | - value="green" |
80 | | - > |
81 | | - <label for="choice2">Green</label> |
82 | | - </div> |
| 79 | + <div class="form-group-fieldset"> |
| 80 | + <input |
| 81 | + type="radio" |
| 82 | + id="choice2" |
| 83 | + name="shirt" |
| 84 | + value="green" |
| 85 | + > |
| 86 | + <label for="choice2">Green</label> |
| 87 | + </div> |
83 | 88 |
|
84 | | - <div class="form-group-fieldset"> |
85 | | - <input |
86 | | - type="radio" |
87 | | - id="choice3" |
88 | | - name="shirt" |
89 | | - value="yellow" |
90 | | - > |
91 | | - <label for="choice3">Yellow</label> |
92 | | - </div> |
93 | | - </fieldset> |
94 | | - </div> |
| 89 | + <div class="form-group-fieldset"> |
| 90 | + <input |
| 91 | + type="radio" |
| 92 | + id="choice3" |
| 93 | + name="shirt" |
| 94 | + value="yellow" |
| 95 | + > |
| 96 | + <label for="choice3">Yellow</label> |
| 97 | + </div> |
| 98 | + </fieldset> |
| 99 | + </div> |
95 | 100 |
|
96 | | - <div class="form-group"> |
97 | | - <label for="sizing">Choose a size:</label> |
98 | | - <select id="sizing" name="size"> |
99 | | - <option value="">--Please choose an option--</option> |
100 | | - <option value="ex-small">XS</option> |
101 | | - <option value="small">S</option> |
102 | | - <option value="medium">M</option> |
103 | | - <option value="large">L</option> |
104 | | - <option value="ex-large">XL</option> |
105 | | - <option value="ex-ex-large">XXL</option> |
| 101 | + <div class="form-group"> |
| 102 | + <label for="sizing">Choose a size:</label> |
| 103 | + <select id="sizing" name="size"> |
| 104 | + <option value="">--Please choose an option--</option> |
| 105 | + <option value="ex-small">XS</option> |
| 106 | + <option value="small">S</option> |
| 107 | + <option value="medium">M</option> |
| 108 | + <option value="large">L</option> |
| 109 | + <option value="ex-large">XL</option> |
| 110 | + <option value="ex-ex-large">XXL</option> |
106 | 111 |
|
107 | | - </select> |
108 | | - </div> |
| 112 | + </select> |
109 | 113 | </div> |
110 | | - </form> |
111 | | - </main> |
112 | | - <footer> |
113 | | - <!-- change to your name--> |
114 | | - <p>By DAMILOLA ODUMOSU</p> |
115 | | - </footer> |
116 | | - </body> |
| 114 | + <button>Submit</button> |
| 115 | + </form> |
| 116 | + </div> |
| 117 | +</main> |
| 118 | + |
| 119 | +<footer> |
| 120 | + <!-- change to your name--> |
| 121 | + <div class="container"> |
| 122 | + <p>By DAMILOLA ODUMOSU</p> |
| 123 | + </div> |
| 124 | +</footer> |
| 125 | +</body> |
117 | 126 | </html> |
| 127 | + |
0 commit comments