Skip to content

Commit 64f1bba

Browse files
authored
Merge pull request #54 from CBID2/making-the-form-accessible
a11y: add attributes and placeholder text to form
2 parents 6009394 + ad40b5e commit 64f1bba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

3-forms/19_contact_us.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<body>
1010
<form>
1111
<h2>Contact Us</h2>
12-
<label>Name: </label><input type="text" />
12+
<label for="name">Name: </label><input type="text" id="name" placeholder="Enter your name" />
1313
<br><br>
14-
<label>Comment or suggestion:</label><br>
15-
<textarea></textarea>
14+
<label for="comment">Comment or suggestion:</label><br>
15+
<textarea id="comment" placeholder="Enter your comment"></textarea>
1616
<br><br>
17-
<input type="submit" />
17+
<input type="submit" value="Submit" />
1818
</form>
1919
</body>
20-
</html>
20+
</html>

0 commit comments

Comments
 (0)