Forum Moderators: open
My HTML file looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><head>
<title>My Site</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
content
</body>
</HTML>
I get three HTML validation errors that I don't know how to correct.
1) document type does not allow element "META" here
- referring to the slash at the end of the meta http-equiv tag
2) end tag for element "HEAD" which is not open
- referring to the </head> tag
3) document type does not allow element "BODY" here
- referring to the <body> tag
Any ideas? Thanks. :)
<link rel="stylesheet" type="text/css" href="styles.css" />
One more; try a blank line after the DOCTYPE, before <html> and make the meta "content-type" the first (before the stylesheet).
/claus
[edited by: claus at 5:17 pm (utc) on Aug. 25, 2003]