Access: [11.2.1.10]: replace deprecated html <u> (Priority 2)
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.
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>
|
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>
|
References: