Access 2.2.1.4

From Htmlpedia
Jump to: navigation, search

Access: [2.2.1.4]: poor color contrast (visited link) (Priority 3)

Cause:

Ensure there is sufficient contrast between text and background colors for individuals with a color deficiency.

Example:

Bad
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>Foreground and background color do not contrast sufficiently</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#000000" alink="#000000" vlink="#ff88ff">
</body>
</html>

Solution:

References: