From Htmlpedia
Contents |
[edit]
Access: [11.2.1.10]: replace deprecated html <u> (Priority 2)
[edit]
Cause:
Replace deprecated HTML elements and attributes to ensure web pages remain compliant with the most current browser technologies. The <u> element (which renders underlined text) has been deprecated. Use Cascading Style Sheets (CSS) to apply font effects to text.
[edit]
Example:
![]() | <!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/11.2.1</title> </head> <body> <h1><u>Underlined Heading</u></h1> </body> </html> |
[edit]
Solution:
![]() | <!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/11.2.1</title>
<style type="text/css">
h1 { text-decoration: underline; }
</style>
</head>
<body>
<h1>Underlined Heading</h1>
</body>
</html>
|
[edit]
References:
- W3C WAI: http://www.w3.org/WAI/
- HTML Techniques for WAI 1.0: http://www.w3.org/TR/WCAG10-HTML-TECHS/


