Deprecated element
(Referring UWEM Test: 11.2_HTML_01)Test info
Failure cause
The inspected element is deprecated.
You use one of the following elements deprecated in HTML 4.01:
- applet
- basefont
- center
- dir
- font
- isindex
- menu
- s
- strike
- u
For a full list of HTML 4.01 elements see: HTML Techniques for WCAG 1.0 - Index of HTML elements – deprecated elements are marked by an asterisk (*).
Why this may be a barrier
A deprecated element 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 elements 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 ELEMENTS</title></head>
<body>This page uses no deprecated elements.</body>
</html>
Solution
Replace the deprecated element with the appropriate newer elements and 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_01This test is targeted to find deprecated HTML elements.