Skip to content

Commit 697f95f

Browse files
labelling the T-shirt size and chaninging the color section to be recquired
1 parent 270dbee commit 697f95f

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

Form-Controls/index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,37 @@ <h1>Product Pick</h1>
1414
<main>
1515
<form>
1616
<section>
17-
<!-- customer name must be valid as a text and at least 2 char-->
17+
1818
<div>
1919
<label for="name"> Name*: </label>
2020
<input type="text" id="name" name="name" required minlength="2">
2121
</div>
22-
<!-- customer email must be valid in an email pattern-->
22+
2323
<div>
2424
<label for="email">Email*:</label>
2525
<input type="email" id="email" name="email" required>
2626
</div>
27-
<!-- provide three options for the T-shirts color,
28-
make sure that they don't pick other colors-->
27+
28+
2929
<fieldset>
30-
<legend required>T-shirt Color</legend>
30+
<legend >t-shirt Color</legend>
3131
<div>
32-
<label for="black">Black</label>
33-
<input type="radio" id="black" name="T-shirtColor" value="black">
32+
<label for="black" required>Black</label>
33+
<input type="radio" id="black" name="t-shirt-color" value="black">
3434
</div>
3535
<div>
3636
<label for="red">Red </label>
37-
<input type="radio" id="red" name="T-shirtColor" value="red">
37+
<input type="radio" id="red" name="t-shirt-color" value="red">
3838
</div>
3939
<div>
4040
<label for="green">Green </label>
41-
<input type="radio" id="green" name="T-shirtColor" value="green">
41+
<input type="radio" id="green" name="t-shirt-color" value="green">
4242
</div>
4343
</fieldset>
44-
<!-- provide 6 options XS, S, M, L, XL, XXL
45-
for the customer to chose the color -->
44+
45+
4646
<div>
47-
<label for="T-shirtSize"></label>
47+
<label for="T-shirt-size" >T-Shirt Size</label>
4848
<select name="T-shirtSize" id="T-shirtSize" required>
4949
<option value="XS">XS</option>
5050
<option label="S" value="S">S</option>
@@ -61,8 +61,8 @@ <h1>Product Pick</h1>
6161
</form>
6262
</main>
6363
<footer>
64-
<!-- change to your name-->
65-
<h2>By Ebraim Moqbel</h2>
64+
65+
<p>By Ebraim Moqbel</p>
6666
</footer>
6767
</body>
6868
</html>

0 commit comments

Comments
 (0)