Adding a Document Type
It is important to validate documents for conformance to W3C standards to ensure a wide variety of technologies can access your web resources. The W3C HTML Validator is one tool that can be used validate HTML web resources.
Steps to Add DOCTYPE
- Add "DOCTYTPE"
- Add language information
- Add character encoding information
Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.0 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
</body>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
</body>