-
Notifications
You must be signed in to change notification settings - Fork 24
/
colorcontrast.html
36 lines (31 loc) · 1.29 KB
/
colorcontrast.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example Keyboard Trap</title>
<link rel="stylesheet" href="css/normalize.css"/>
<link rel="stylesheet" href="css/main.css"/>
<link rel="stylesheet" href="css/test1.css"/>
<link rel="stylesheet" href="css/test2.css"/>
<script src="js/jquery-1.12.0.min.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<h1>Example Colour Contrast</h1>
<h3>Small text does not have a contrast ratio of at least 4.5:1 so does not meet AA</h3>
<div class="example">
<p class="low-contrast-small-aa">This small text does not have enough contrast with it's background</p>
</div>
<h3>Large text does not have a contrast ratio of at least 3:1 so does not meet AA</h3>
<div class="example">
<p class="low-contrast-large-aa">This large text does not have enough contrast with it's background</p>
</div>
<h3>Small text does not have a contrast ratio of at least 7:1 so does not meet AAA</h3>
<div class="example">
<p class="low-contrast-small-aaa">This small text does not have enough contrast with it's background</p>
</div>
<h3>Large text does not have a contrast ratio of at least 4.5:1 so does not meet AAA</h3>
<div class="example">
<p class="low-contrast-large-aaa">This large text does not have enough contrast with it's background</p>
</div>
</body>
</html>