Skip to content

Commit d55dd23

Browse files
name, email and color fields added
1 parent ff7b9d0 commit d55dd23

1 file changed

Lines changed: 27 additions & 3 deletions

File tree

Form-Controls/index.html

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,33 @@ <h1>Product Pick</h1>
1414
<main>
1515
<form>
1616
<!-- 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-->
17+
<!--What is the customer's name? I must collect this data and ensure it contains at least two non-space characters.
18+
What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern.
19+
What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours?
20+
What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL-->
21+
<div>
22+
<label for="name">Name:</label>
23+
<input type="text" id="name" name="name" required>
24+
</div>
25+
<div>
26+
<label for="email">Email</label>
27+
<input type="email" id="email" name="email">
28+
</div>
29+
<div>
30+
Color
31+
<div>
32+
<label for="color">Purple</label>
33+
<input type="radio" name="purple" id="color" value="purple">
34+
</div>
35+
<div>
36+
<label for="color">Blue</label>
37+
<input type="radio" name="color" id="blue" value="blue">
38+
</div>
39+
<div>
40+
<label for="color">Wine</label>
41+
<input type="radio" name="color" id="wine" value="wine">
42+
</div>
43+
</div>
2044
</form>
2145
</main>
2246
<footer>

0 commit comments

Comments
 (0)