Previous Message
Next Message

Problems with W3.org Validation

Sent by Moore Michaelp on 1 December 2003 22:10


To work as intended, your CSS style sheet needs a correct document parse tree. This means you should
use valid HTML.

Errors
URI : file://localhost/C:\Documents and Settings\MMOORE\Desktop\family\web\test2.htm
Line: 0 
Parse error - Unrecognized : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <title>The Layout Test</title> <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" /> <style type="text/css" media="all"> <!-- body { margin: 0; padding: 0;
background: #FFF; color: #000; } 

I have just a basic code -- and wanted to see if I had the correct layout to see what the
validation would give me and wham...an error. Not sure what this means though. Any help...please.

The code that I have looks like the folling.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>The Layout Test</title>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<style type="text/css" media="all">
<!--
body {
	margin: 0; padding: 0;
	background: #FFF; color: #000;
	}
#header {
	position: absolute;
	top: 0px; left: 0px;
	width: 100%; height: 100px;
	margin: 0px; padding: 0px;
	background: #07F; color: #000;
	z-index: 0;
	}
#menu	{
	position: absolute;
	top: 100px; left: 0px;
	width: 100%; height: 20px;
	margin: 0px; padding: 0px;
	background: #FFC; color: #000;
	z-index: 0;
	}
#holder {
	position: absolute;
	top: 120px; left: 0px;
	width: 100%; height: auto;
	margin: 0px; padding: 0px;
	background: #07F; color: #000;
	z-index: 0;
	}
-->
</style>
</head>
<body>

<div id="header"></div>
<div id="menu"></div>
<div id="holder"></div>
</body>
</html>

This file looks good to me...Don't know where I made the mistake?

Thank you in advance for  your help. =)

Michael Paul
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: