Skip to content

Commit 4a9c3f6

Browse files
committed
Build initial form controls
1 parent f5b9e81 commit 4a9c3f6

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

Form-Controls/index.html

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,32 @@ <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">NAME</label>
17+
<input name="name" id="name" type="text" pattern=".*\S.*\S.*" />
18+
<label for="email">Email</label>
19+
<input id="email" type="email" required />
20+
<fieldset>
21+
<label id="colour" for="colour">Colour</label>
22+
<input type="radio" name="colour" value="black" required />
23+
<input type="radio" name="colour" value="white" required />
24+
<input type="radio" name="colour" value="red" required />
25+
</fieldset>
26+
<label for="size">SIZE</label>
27+
<select id="size" name="size" required>
28+
<option value="">choose a size</option>
29+
<option value="XS">XS</option>
30+
<option value="S">S</option>
31+
<option value="M">M</option>
32+
<option value="L">L</option>
33+
<option value="XL">XL</option>
34+
<option value="XXL">XXL</option>
35+
</select>
36+
<label id="submit" for="submit"/label>
37+
<button type="submit">Order T-shirt</button>
2038
</form>
2139
</main>
2240
<footer>
23-
<!-- change to your name-->
41+
Salah Alsabhi
2442
<p>By HOMEWORK SOLUTION</p>
2543
</footer>
2644
</body>

0 commit comments

Comments
 (0)