Skip to content

Commit f373295

Browse files
committed
Complete Form Controls task
1 parent c44123d commit f373295

1 file changed

Lines changed: 57 additions & 7 deletions

File tree

Form-Controls/index.html

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,65 @@ <h1>Product Pick</h1>
1313
</header>
1414
<main>
1515
<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-->
20-
</form>
21-
</main>
16+
<label for="name">Customer Name</label>
17+
<input
18+
type="text"
19+
id="name"
20+
name="name"
21+
required
22+
pattern=".*\S.*\S.*"
23+
/>
24+
<label for="email">Email</label>
25+
<input
26+
type="email"
27+
id="email"
28+
name="email"
29+
required
30+
/>
31+
<fieldset>
32+
<legend>T-shirt Colour</legend>
33+
34+
<input
35+
type="radio"
36+
id="red"
37+
name="colour"
38+
value="red"
39+
required
40+
/>
41+
<label for="red">Red</label>
42+
43+
<input
44+
type="radio"
45+
id="blue"
46+
name="colour"
47+
value="blue"
48+
/>
49+
<label for="blue">Blue</label>
50+
51+
<input
52+
type="radio"
53+
id="black"
54+
name="colour"
55+
value="black"
56+
/>
57+
<label for="black">Black</label>
58+
</fieldset>
59+
<label for="size">T-shirt Size</label>
60+
<select id="size" name="size" required>
61+
<option value="">Choose a size</option>
62+
<option value="xs">XS</option>
63+
<option value="s">S</option>
64+
<option value="m">M</option>
65+
<option value="l">L</option>
66+
<option value="xl">XL</option>
67+
<option value="xxl">XXL</option>
68+
</select>
69+
<button type="submit">Submit Order</button>
70+
</form>
71+
</main>
2272
<footer>
2373
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
74+
<p>By Yodit kasu</p>
2575
</footer>
2676
</body>
2777
</html>

0 commit comments

Comments
 (0)