Skip to content

Commit 9ace722

Browse files
fixed no empty option element for tshirt colour
and size also fixed the space for minlength on line 31
1 parent d1fb3c6 commit 9ace722

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>Product Pick</h1>
2828

2929
<!-- Asks for their surname -->
3030
<label for = "surname"> Surname: </label>
31-
<input type = "text" name = "surname" id="surname" minlength="2 " required>
31+
<input type = "text" name = "surname" id="surname" minlength="2" required>
3232
<br>
3333

3434
<!-- Asks for their email -->
@@ -39,6 +39,7 @@ <h1>Product Pick</h1>
3939
<!-- Gives them the options to choose between 3 colours -->
4040
<label for ="colour"> T-shirt Colour: </label>
4141
<select name = "colour" id = "colour" required>
42+
<option></option>
4243
<option>White</option>
4344
<option>Black</option>
4445
<option>Grey</option>
@@ -48,6 +49,7 @@ <h1>Product Pick</h1>
4849
<!-- Gives them the option to choose between 6 sizes-->
4950
<label for="size"> T-shirt Size:</label>
5051
<select name = "size" id = "size" required>
52+
<option></option>
5153
<option>XS</option>
5254
<option>S</option>
5355
<option>M</option>

0 commit comments

Comments
 (0)