Skip to content

Commit 29f9281

Browse files
committed
feat:added firstname, lastname, email and shirt color.
1 parent a7b8a25 commit 29f9281

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Form-Controls/index.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,48 @@ <h1>Product Pick</h1>
1717
<!--
1818
try writing out the requirements first as comments
1919
this will also help you fill in your PR message later-->
20+
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">
26+
27+
<div class="form-group">
28+
<label for="firstname">First Name</label>
29+
<input type="text" id="firstname" name="firstname" required>
30+
</div>
31+
32+
<div class="form-group">
33+
<label for="lastname">Last Name</label>
34+
<input type="text" id="lastname" name="lastname" required>
35+
</div>
36+
37+
<div class="form-group">
38+
<label for="email">Email</label>
39+
<input type="email" id="email" name="email" required>
40+
</div>
41+
42+
<div class="form-group">
43+
<fieldset>
44+
<legend>Choose a shirt color:</legend>
45+
<div class="form-group-fieldset">
46+
<input type="radio" id="choice1" name="shirt" value="blue">
47+
<label for="choice1">Blue</label>
48+
</div>
49+
50+
<div class="form-group-fieldset">
51+
<input type="radio" id="choice2" name="shirt" value="green">
52+
<label for="choice2">Green</label>
53+
</div>
54+
55+
<div class="form-group-fieldset">
56+
<input type="radio" id="choice3" name="shirt" value="yellow">
57+
<label for="choice3">Yellow</label>
58+
</div>
59+
</fieldset>
60+
</div>
61+
</div>
2062
</form>
2163
</main>
2264
<footer>

0 commit comments

Comments
 (0)