Deprecated attribute
(Referring UWEM Test: 11.2_HTML_02)Test info
Failure cause
The inspected attribute is deprecated.
You use an attribute deprecated in HTML 4.01. For a full list of HTML 4.01 attributes see: HTML Techniques for WCAG 1.0 - Index of HTML attributes – deprecated elements are marked by an asterisk (*).
Why this may be a barrier
A deprecated attribute is one that has been outdated by newer constructs. Even though they are part of the official standard, the W3C discourages the use of deprecated features.
Deprecated attributes may become obsolete in future versions of HTML.
Good Example
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 //EN">
<html>
<head><title>Sample: Page WITHOUT DEPRECATED ATTRIBUTE</title></head>
<body><h2 style="text-align: right">This is the header without deprecated attribute</h2></body>
</html>
Solution
Replace the deprecated attribute with the appropriate new attribute or methods. For instance use styles for font-formating.
References
Related WCAG 1.0 Checkpoint
11.2"Avoid deprecated features of W3C technologies." [Priority 2]
WCAG 1.0 Checkpoint 11.2Referring UWEM Test
11.2_HTML_02This test is targeted to find deprecated HTML attributes.
Examples
Attributes that define visual formatting are deprecated and should be replaced by style definitions.
Below you find examples of deprecated attributes and how to avoid them, grouped by HTML elements.