Mitchx
07-18-2006, 12:26 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Your Site</title>
<link rel="stylesheet" type="text/css"
href="style.css" />
</head>
<body>
<div id="container">
<div id="top"></div>
<div id="left">
<h2>Navigation</h2>
<div class="hr">
<hr />
</div>
<p class="side">
<a href="#">→ Home</a><br />
</p><br />
<h2>Something</h2>
<div class="hr">
<hr />
</div>
<p class="side">Whatever</p>
</div>
<div id="main">
<h1>Title</h1>
<p>Text</p>
<div class="clear"></div>
<h1>Title</h1>
<p>text</p>
</div>
<div id="footer"></div>
<div id="footer2"></div>
</div>
</body>
</html>
The code passes HTML validation, but then when I try it on the CSS validator, I get the following 2 errors:
* Line: 19
Parse error - Unrecognized : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Your Site</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="container"> <div id="top"></div> <div id="left"> <h2>Navigation</h2> <div class="hr"> <hr /> </div> <p class="side"> <a href="#">→
* Line: 47 Context : Home
Parse Error - [empty string]
Anyone know what is wrong with it?
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Your Site</title>
<link rel="stylesheet" type="text/css"
href="style.css" />
</head>
<body>
<div id="container">
<div id="top"></div>
<div id="left">
<h2>Navigation</h2>
<div class="hr">
<hr />
</div>
<p class="side">
<a href="#">→ Home</a><br />
</p><br />
<h2>Something</h2>
<div class="hr">
<hr />
</div>
<p class="side">Whatever</p>
</div>
<div id="main">
<h1>Title</h1>
<p>Text</p>
<div class="clear"></div>
<h1>Title</h1>
<p>text</p>
</div>
<div id="footer"></div>
<div id="footer2"></div>
</div>
</body>
</html>
The code passes HTML validation, but then when I try it on the CSS validator, I get the following 2 errors:
* Line: 19
Parse error - Unrecognized : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Your Site</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="container"> <div id="top"></div> <div id="left"> <h2>Navigation</h2> <div class="hr"> <hr /> </div> <p class="side"> <a href="#">→
* Line: 47 Context : Home
Parse Error - [empty string]
Anyone know what is wrong with it?