Access 4.3.1.2

From Htmlpedia
Jump to: navigation, search

Access: [4.3.1.2]: language attribute invalid (Priority 3)

Cause:

Ensure the language specified in either the http header or html markup (i.e. 'html lang="en"') is valid.

Example:

Bad
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="blah">
<head>
<title>aert1.0/4.3.1 - The HTML element does not contain a valid lang attribute</title>
</head>
<body>
</body>
</html>
Good
<!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/4.3.1 - The HTML element does not contain a valid lang attribute</title>
</head>
0<body>
</body>
</html>

Solution:

References: