-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (38 loc) · 1.11 KB
/
index.html
File metadata and controls
44 lines (38 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Accessibility Test Page</title>
<style>
/* Poor color contrast for testing */
.low-contrast {
color: #777;
background-color: #999;
padding: 10px;
}
</style>
</head>
<body>
<h1>Accessibility Test Page</h1>
<!-- Missing alt text on image -->
<img src="test-image.jpg" width="200" height="150" />
<!-- Poor color contrast -->
<div class="low-contrast">
This text has poor color contrast and may be hard to read.
</div>
<!-- Invalid ARIA attribute -->
<div role="button" aria-invalid-attribute="true">
Button with invalid ARIA attribute
</div>
<!-- Form input missing label -->
<form>
<input type="text" name="username" placeholder="Enter username" />
<button type="submit">Submit</button>
</form>
<!-- Button without accessible name -->
<button></button>
<!-- Link without accessible name -->
<a href="#"></a>
</body>
</html>