Element

html

Error Type

Known

Guidelines

  • Stanca Act
    Guideline GroupRequirement 1: Conform To Specifications
  • WCAG 1.0 (Level AA)
    Guideline GroupPriority 2
    Guideline Subgroup3.2 Create documents that validate to published formal grammars.
  • WCAG 1.0 (Level AAA)
    Guideline GroupPriority 2
    Guideline Subgroup3.2 Create documents that validate to published formal grammars.

Requirement

Document validates to specification.

Error

Document does not validate.

Short Description

Document must validate to declared doctype.

How To Repair

Validate the document using a validator service.

Steps To Check

Procedure

1. Validate the document using a validator service.

Expected Result

1. The document must validate according to specification.

Failed Result

1. Modify the document so it validates to declared doctype declaration.

Examples

Pass Examples

The document validates to declared specification.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Testfile - Check #232-2 - Negative</title>
</head>
<body>
<p>This link to an <a href="232-1.html">invalid file</a> opens in the same window.</p>
</body>
</html>

Fail Examples

The document does not validate to declared specification - 'strict' doctype does not allow target attribute.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Testfile - Check #232-1 - Positive</title>
</head>
<body>
<p>This link to a <a href="232-2.html" title="valid file - opens in a new window" target="_new">valid file</a> opens in a new window.</p>
</body>
</html>
Web site engine's code is copyright © 2023
Inclusive Design Institute