Access 3.6.1.4

From Htmlpedia
Jump to: navigation, search

Access: [3.6.1.4]: list usage invalid <li> (Priority 2)

Cause:

Avoid using list markup to create formatting effects. Do not use 'li' (list item) 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>
<li>Just an li by itself</li>
</body>
</html>

Solution:

References: