Forum Moderators: open
:( 7 errors
So, 4 of them were tags used in places they shoudn't be, which was easy to correct and something I will remember (in this case, using <h> tags within a link <a> tag)
:)
However, the other three have me stumped!
They all appear to be related to my having the <html> tag where it is¿¿
The first error says this:
Error Line 4 column 5: document type does not allow element "HTML" here.
<html>
Now this is what I have in the top of my page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<html>
<head>
<title>
Title here.
</title>
<meta name="description" content="Description here.">
<meta name="keywords" content="Some keywords here.">
<link rel="stylesheet" type="text/css" href="stylesheet2.css">
<script type="text/javascript">
if (parent.frames.length > 0) {
parent.location.href = self.document.location
}
</script>
</head>
<body>
</body>
</html>
I'm beginning to believe that this problem is somehow related to the doctype declaration at the top....
Is there another way/place to put the <html> tag?
Could the problem have been caused by the javascript (I took it out and the error is the same)?
Could someone help me out here, please?