Access 6.1.1.3

From Htmlpedia
Jump to: navigation, search

Access: [6.1.1.3]: style sheets require testing (style attribute) (Priority 1)

Cause:

If style sheets are used for formatting content and/or controlling page layout, be sure the information remains accessible when style sheets are disabled or not supported. Include a non-visual method of presenting the information and organize style sheets logically.

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>aert1.0/6.1.1</title>
</head>
<body>

<p style="color: green">hello</p>

</body>
</html>

Solution:

References: