Skip to content

Commit ac63a97

Browse files
committed
Update index.html to enhance form accessibility and improve content clarity
1 parent ff7b9d0 commit ac63a97

1 file changed

Lines changed: 36 additions & 8 deletions

File tree

Form-Controls/index.html

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,52 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>My form exercise</title>
7-
<meta name="description" content="" />
7+
<meta name="description" content="form exercise demonstrating accessible form controls." />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
</head>
1010
<body>
1111
<header>
12-
<h1>Product Pick</h1>
12+
<h1>My Store T-shirt Sales</h1>
1313
</header>
1414
<main>
1515
<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-->
16+
<div>
17+
<label for="name">name</label>
18+
<input type="text"name="name" id="name" placeholder="Username" required>
19+
</div>
20+
21+
<div>
22+
<label for="email">email</label>
23+
<input type="email" name="email" id="email" placeholder="name@example.com" required>
24+
</div>
25+
26+
<div>
27+
<label for="color">color</label>
28+
<select name="color" id="color" required>
29+
<option value="" disabled selected>
30+
-- select a color --
31+
</option>
32+
<option value="black">Black</option>
33+
<option value="blue">blue</option>
34+
<option value="green">green</option>
35+
</select>
36+
</div>
37+
38+
<div>
39+
<label for="size">size</label>
40+
<select name="size" id="size" required>
41+
<option value="XS">XS</option>
42+
<option value="S">S</option>
43+
<option value="M">M</option>
44+
<option value="L">L</option>
45+
<option value="XL">XL</option>
46+
<option value="XXL">XXL</option>
47+
</select>
48+
</div>
2049
</form>
2150
</main>
2251
<footer>
23-
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
52+
<p>Exercise by Toluwalase Tiamiyu</p>
2553
</footer>
2654
</body>
2755
</html>

0 commit comments

Comments
 (0)