Access 11.2.1.3

From Htmlpedia
Jump to: navigation, search

Access: [11.2.1.3]: replace deprecated html <center> (Priority 2)

Cause:

Replace deprecated html elements and attributes to ensure web pages remain compliant with the most current browser technologies. The <center> element is deprecated. Use Cascading Style Sheets (CSS) to position text.

Example:

Bad
<!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>

<center>Hello</center>

</body>
</html>

Solution:

References: