Skip to content

Commit c6b59c1

Browse files
committed
Verify 100 Lighthouse accessibility score
1 parent 9cfc9ff commit c6b59c1

1 file changed

Lines changed: 31 additions & 21 deletions

File tree

Form-Controls/index.html

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,53 +15,63 @@ <h1>Product Pick</h1>
1515
<main>
1616
<form>
1717
<!-- REQUIREMENTS -->
18-
<!-- what is the custome's name? (min 2 characters) -->
18+
<!-- what is the customer's name? (min 2 characters) -->
1919
<div>
20-
<label for="name">Full Name:</label>
21-
<input type="text" id="name" name="name" required mainlength="2" pattern=".{2,}" />
20+
<label for="name">Full Name:</label><br />
21+
<input type="text" id="name" name="name" required mainlength="2" autocomplete="name" /><br /><br />
2222
</div>
2323

2424
<!-- What is the customer's email? (must be valid) -->
2525
<div>
26-
<label for="email">Email Address:</label>
27-
<input type="email" id="email" name="email" required />
26+
<label for="email">Email Address:</label><br />
27+
<input type="email" id="email" name="email" required autocomplete="email" /><br /><br />
2828
</div>
2929

3030
<!-- What colour should this t-shirt be? (only 3 options) -->
3131
<fieldset>
3232
<legend>Choose a T-shirt Color:</legend>
33+
3334
<div>
3435
<input type="radio" id="red" name="color" value="red" />
3536
<label for="red">Red</label>
36-
</div>
37+
</div><br />
38+
3739
<div>
3840
<input type="radio" id="blue" name="color" value="blue" />
3941
<label for="blue">Blue</label>
40-
</div>
42+
</div><br />
43+
4144
<div>
4245
<input type="radio" id="green" name="color" value="green" />
4346
<label for="green">Green</label>
44-
</div>
45-
</fieldset>
47+
</div><br />
48+
</fieldset><br />
4649

4750
<!-- T-shirt Size -->
4851
<div>
49-
<label for="size">Select Size:</label>
50-
<select id="size" name="size" required>
51-
<option value="">--Select a Size--</option>
52-
<option value="XS">XS</option>
53-
<option value="S">S</option>
54-
<option value="M">M</option>
55-
<option value="L">L</option>
56-
<option value="XL">XL</option>
57-
option value="XXL">XXL</select>option>
58-
</select>
52+
<label for="size">Select Size:</label>
53+
<select id="size" name="size" required>
54+
<option value="">--Select a Size--</option>
55+
<option value="XS">XS</option>
56+
<option value="S">S</option>
57+
<option value="M">M</option>
58+
<option value="L">L</option>
59+
<option value="XL">XL</option>
60+
<option value="XXL">XXL</option>
61+
</select><br /><br />
5962
</div>
63+
64+
<!-- Submit button (optional for testing)-->
65+
<div>
66+
<button type="submit">Submit</button>
67+
</div>
6068
</form>
6169
</main>
70+
71+
6272
<footer>
63-
<!-- change to your name-->
64-
<h2>By HOMEWORK SOLUTION</h2>
73+
74+
<h2>By Zadri Abdule</h2>
6575
</footer>
6676
</body>
6777
</html>

0 commit comments

Comments
 (0)