Forum Moderators: open
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Hello World</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2" />
<meta name="keywords" content="hello, world" />
</head>
<body>
<p>Hello World = Witaj Świecie</p>
</body>
</html>
And while validating I get 3 error messages:
Line 6, column 47: document type does not allow element "META" here
<meta name="keywords" content="hello, world" />
Line 7, column 6: end tag for element "HEAD" which is not open
</head>
Line 8, column 5: document type does not allow element "BODY" here
<body>
I simply don't understand what to do to validate it.
I must have encoding iso-8859-2
Please help!
Thnx
Best regards
Michal Cibor
what validator are you using? What does it say about the doctype it is checking against (your first error message)?
Try to adapt your doctype statement, as far as I know, it is case sensitive:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Also, when I checked last, the validator.w3.org did not like an ending slash in the meta tags of a HTML 4.01 Transitional page.
Regards,
R.