Skip to content

Commit 92140b9

Browse files
committed
First commit - Form Creation
1 parent d28242a commit 92140b9

1 file changed

Lines changed: 26 additions & 6 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,35 @@ <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+
17+
<label for="name">Name:</label>
18+
<input type="text" id="name" name="name" pattern=".*\S.*\S.*" required />
19+
20+
<label for="email">Email:</label>
21+
<input type="email" id="email" name="email" required />
22+
23+
<label for="color">Choose a T-Shirt Color:</label>
24+
<select id="color" name="color">
25+
<option value="red">Red</option>
26+
<option value="blue">Blue</option>
27+
<option value="green">Green</option>
28+
</select>
29+
30+
<label for="size"> Choose a T-Shirt Size:</label>
31+
<select id="size" name="size">
32+
<option value="xs">XS</option>
33+
<option value="small">S</option>
34+
<option value="medium">M</option>
35+
<option value="large">L</option>
36+
<option value="xlarge">XL</option>
37+
<option value="xxlarge">XXL</option>
38+
</select>
39+
40+
<button type="submit">Submit</button>
2041
</form>
2142
</main>
2243
<footer>
23-
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
44+
<p>By Luphumlo Ngcwayi</p>
2545
</footer>
2646
</body>
2747
</html>

0 commit comments

Comments
 (0)