Skip to content

Commit 98350a3

Browse files
committed
adding form contents to index.html
1 parent d28242a commit 98350a3

1 file changed

Lines changed: 56 additions & 7 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 56 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,65 @@
1212
<h1>Product Pick</h1>
1313
</header>
1414
<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-->
15+
<form>
16+
<fieldset>
17+
<legend>Customer Information</legend>
18+
<p>
19+
<label for="customerName">Customer Name</label>
20+
<input
21+
id="customerName"
22+
name="customerName"
23+
type="text"
24+
pattern=".*\S.*\S.*"
25+
placeholder="username"
26+
required
27+
/>
28+
</p>
29+
<p>
30+
<label for="emailAddress">Email Address</label>
31+
<input
32+
id="emailAddress"
33+
name="emailAddress"
34+
type="email"
35+
placeholder="email"
36+
required
37+
/>
38+
</p>
39+
</fieldset>
40+
<fieldset>
41+
<legend>T-shirt Colour and Size</legend>
42+
<p>
43+
<input type="radio" id="red" name="colour" value="red" required />
44+
<label for="red">Red</label>
45+
</p>
46+
<p>
47+
<input type="radio" id="green" name="colour" value="green" />
48+
49+
<label for="green">Green</label>
50+
</p>
51+
<p>
52+
<input type="radio" id="blue" name="colour" value="blue" />
53+
<label for="blue">Blue</label>
54+
</p>
55+
<p>
56+
<label for="size">T-shirt Size</label>
57+
<select id="size" name="size" required>
58+
<option value="" disabled selected>Select Size</option>
59+
<option value="Xsmall">XS</option>
60+
<option value="Small">S</option>
61+
<option value="Medium">M</option>
62+
<option value="Large">L</option>
63+
<option value="XLarge">XL</option>
64+
<option value="XXLarge">XXL</option>
65+
</select>
66+
</p>
67+
</fieldset>
68+
<input type="submit" value="Submit" />
2069
</form>
2170
</main>
2271
<footer>
23-
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
72+
73+
<p>By Gustarv Nchitu</p>
2574
</footer>
2675
</body>
2776
</html>

0 commit comments

Comments
 (0)