Element

body

Error Type

Known

Guidelines

Requirement

Do not use background images.

Error

Using a background image.

Short Description

The body element must not contain a background attribute.

How To Repair

Remove the background attribute of the body element.

Steps To Check

Procedure

1. Check the body element in the HTML document.

Expected Result

1. The body element must not contain a background attribute.

Failed Result

1. Remove the background attribute.

Examples

Pass Examples

body does not contain a background attribute.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html xml:lang="en-US" lang="en">
<head>
<title>OAC Testfile - Check #182 - Negative</title>
</head>
<body>
</body>
</html>

Fail Examples

body contains a background attribute.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html xml:lang="en-US" lang="en">
<head>
<title>OAC Testfile - Check #182 - Positive</title>
</head>
<body background="background.jpg">
</body>
</html>

English | German | Italiano


Web site engine's code is copyright © 2011
Inclusive Design Institute
Web Service API