Access 3.6.1.2

From Htmlpedia
Jump to: navigation, search

Access: [3.6.1.2]: list usage invalid <ol> (Priority 2)

Cause:

Avoid using list markup to create formatting effects. Do not use 'ol' (ordered list) to indent text, use Cascading Style Sheets (CSS) instead.

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/3.6.1</title>
</head>
<body>
<ol>
   This is only for the indent.<br/>
   And this as well.
   <ol>
       A further indent.
   </ol>
</ol>
</body>
</html>

Solution:

References: