Skip to content

Commit e2e61e3

Browse files
committed
Add basic input fields for name, email, shirt colour and size in index.html
1 parent d28242a commit e2e61e3

1 file changed

Lines changed: 39 additions & 5 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,49 @@ <h1>Product Pick</h1>
1313
</header>
1414
<main>
1515
<form>
16-
<!-- write your html here-->
1716
<!--
18-
try writing out the requirements first as comments
19-
this will also help you fill in your PR message later-->
17+
collect name, email, tshirt colour, tshirt size-->
18+
<!--Validation:
19+
name at least two non space characters
20+
Email valid format, follow expected pattern
21+
colour - 3 options
22+
size - 6 options, XS, S, M, L, XL, XXL-->
23+
<div>
24+
<label for="name">Name:</label>
25+
<input type="text" id="name" name="name" required>
26+
</div>
27+
<br>
28+
<div>
29+
<label for="email">Email:</label>
30+
<input type="email" id="email" name="email" required>
31+
</div>
32+
<br>
33+
<div>
34+
<label for="colour">Colour</label>
35+
<select name="colour" id="colour" required>
36+
<option value="">Please select</option>
37+
<option value="white">White</option>
38+
<option value="black">Black</option>
39+
<option value="green">Green</option>
40+
</select>
41+
</div>
42+
<br>
43+
<div>
44+
<label for="size">Size</label>
45+
<select name="size" id="size" required>
46+
<option value="">Please select</option>
47+
<option value="xs">Extra Small</option>
48+
<option value="s">Small</option>
49+
<option value="m">Medium</option>
50+
<option value="l">Large</option>
51+
<option value="xl">Extra Large</option>
52+
<option value="xxl">Extra Extra Large</option>
53+
</select>
54+
</div>
2055
</form>
2156
</main>
2257
<footer>
23-
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
58+
<p>By Mahir Shah</p>
2559
</footer>
2660
</body>
2761
</html>

0 commit comments

Comments
 (0)