Skip to content

Commit 893270c

Browse files
added the appropriate for id and name tags
1 parent 9a54070 commit 893270c

2 files changed

Lines changed: 18 additions & 15 deletions

File tree

Form-Controls/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,28 @@ <h1>Product Pick</h1>
2525
3. What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours?
2626
4. What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL-->
2727

28-
<label> Forename: </label>
29-
<input type = "text" for = "Forname:" minlength="2" required>
28+
<label for = "forename"> Forename:</label>
29+
<input type = "text" name = "forename" id="forename" minlength="2" required>
3030
<br>
3131

32-
<label> Surname: </label>
33-
<input type = "text" for = "Surname:" minlength="2 " required>
32+
<label for = "surname"> Surname: </label>
33+
<input type = "text" name = "surname" id="surname" minlength="2 " required>
3434
<br>
3535

36-
<label> Email: </label>
37-
<input type = "email" for = "Email:" required>
36+
<label for = "email"> Email: </label>
37+
<input type = "email" name = "email" id="email" required>
3838
<br>
3939

40-
<label> T-shirt Colour: </label>
41-
<select required>
40+
<label for ="colour"> T-shirt Colour: </label>
41+
<select name = "colour" id = "colour" required>
4242
<option>White</option>
4343
<option>Black</option>
4444
<option>Grey</option>
4545
</select>
4646
<br>
4747

48-
<label> T-shirt Size:</label>
49-
<select required>
48+
<label for="size"> T-shirt Size:</label>
49+
<select name = "size" id = "size" required>
5050
<option>XS</option>
5151
<option>S</option>
5252
<option>M</option>

Form-Controls/style.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,29 @@
44
flex-direction: column;
55
border-style:solid;
66
padding: 10px;
7-
max-width:170px;
7+
max-width:400px;
88
margin:auto;
9+
font-size: 28px;
910
}
1011

11-
.form-container input{
12+
.form-container input,
13+
.form-container option{
14+
font-size: 24px;
1215
width:100%;
13-
max-width: 150px;
16+
max-width: 325px;
1417
box-sizing: border-box;
1518
margin-left:auto;
1619
margin-right:auto;
1720
}
1821

1922
.form-container select,
2023
.form-container button{
21-
max-width:150px;
24+
max-width:325px;
2225
width: 100%;
2326
box-sizing: border-box;
2427
margin-left:auto;
2528
margin-right:auto;
29+
font-size: 24px;
2630
}
2731

2832
h1{
@@ -32,4 +36,3 @@ h1{
3236
footer{
3337
text-align: center;
3438
}
35-

0 commit comments

Comments
 (0)