Skip to content

Commit 84147a6

Browse files
form control
1 parent dc50152 commit 84147a6

1 file changed

Lines changed: 37 additions & 6 deletions

File tree

Form-Controls/index.html

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,47 @@
1212
<h1>Product Pick</h1>
1313
</header>
1414
<main>
15-
<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-->
15+
<form>
16+
<section>
17+
<!-- customer name must be valid as a text and at least 2 char-->
18+
<div>
19+
<label for="name"> Name*: </label>
20+
<input type="text" id="name" name="name" required minlength="2">
21+
</div>
22+
<!-- customer email must be valid in an email pattern-->
23+
<div>
24+
<label for="email">Email*:</label>
25+
<input type="email" id="email" name="email" required>
26+
</div>
27+
<!-- provide three options for the T-shirts color,
28+
make sure that they don't pick other colors-->
29+
<fieldset>
30+
<legend required>T-shirt Color</legend>
31+
<div>
32+
<label for="black">Black</label>
33+
<input type="radio" id="black" name="T-shirtColor" value="black">
34+
</div>
35+
<div>
36+
<label for="red">Red </label>
37+
<input type="radio" id="red" name="T-shirtColor" value="red">
38+
</div>
39+
<div>
40+
<label for="green">Green </label>
41+
<input type="radio" id="green" name="T-shirtColor" value="green">
42+
</div>
43+
</fieldset>
44+
<!-- provide 6 options XS, S, M, L, XL, XXL
45+
for the customer to chose the color -->
46+
47+
<div>
48+
<button type="submit">Place your order</button>
49+
</div>
50+
</section>
2051
</form>
2152
</main>
2253
<footer>
2354
<!-- change to your name-->
24-
<h2>By HOMEWORK SOLUTION</h2>
55+
<h2>By Ebraim Moqbel</h2>
2556
</footer>
2657
</body>
2758
</html>

0 commit comments

Comments
 (0)