Skip to content

Commit cd4c17b

Browse files
committed
form attempt 1
1 parent a7b8a25 commit cd4c17b

1 file changed

Lines changed: 50 additions & 4 deletions

File tree

Form-Controls/index.html

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,56 @@ <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-->
16+
<label for="name">Customer Name:</label>
17+
18+
<input
19+
type="text"
20+
id="name"
21+
name="name"
22+
required
23+
pattern=".*\S.{1,}.*"
24+
>
25+
<br><br>
26+
<label for="email">Email Address:</label>
27+
28+
<input
29+
type="email"
30+
id="email"
31+
name="email"
32+
required
33+
>
34+
<br><br>
35+
<label for="colour">T-Shirt Colour:</label>
36+
37+
<select id="colour" name="colour" required>
38+
<option value="">Select a colour</option>
39+
<option value="black">Black</option>
40+
<option value="white">White</option>
41+
<option value="blue">Yellow</option>
42+
43+
</select>
44+
<br><br>
45+
<p>T-Shirt Size:</p>
46+
47+
<input type="radio" id="xs" name="size" value="XS" required>
48+
<label for="xs">XS</label>
49+
50+
<input type="radio" id="s" name="size" value="S">
51+
<label for="s">S</label>
52+
53+
<input type="radio" id="m" name="size" value="M">
54+
<label for="m">M</label>
55+
56+
<input type="radio" id="l" name="size" value="L">
57+
<label for="l">L</label>
58+
59+
<input type="radio" id="xl" name="size" value="XL">
60+
<label for="xl">XL</label>
61+
62+
<input type="radio" id="xxl" name="size" value="XXL">
63+
<label for="xxl">XXL</label>
64+
<br><br>
65+
<button type="submit">Place Order</button>
2066
</form>
2167
</main>
2268
<footer>

0 commit comments

Comments
 (0)