PDA

View Full Version : Getting this error when trying to validate



unlime
03-21-2007, 04:09 PM
I think I'm losingit. I keep getting this error when I try to vaildate the CSS

Lexical error at line 1, column 3. Encountered: "D" (68), after : "<!"

Thanks for looking

<!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" xml:lang="en" lang="en">
<head>
<title></title>
<style type="text/css"><!--
body {font: 12px verdana,geneva,lucida,arial,sans-serif; line-height: 1.5;}
ul,ol {list-style-type: none}
ul {list-style-image: url(triangle.gif);}
ol {list-style-image: url(content-arrow.gif);}
-->
</style>
</head>

<body>
<h1>INP 150 Winter 2007 - Class Schedule</h1>

<div class="week past">
<h2>Week 1</h2>
<p>Schedule for the Week:</p>
<ol>
<li>Introduction to INP 150</li>
<li><a href="https://www.wccnet.edu/computingatwcc/emailactivation.php">Set up E-Mail Accounts</a></li>
<li><strong>Lecture 1:</strong> <a href="inp150/lectures/web-design-overview.htm">Web Design Overview</a></li>
<li><strong>Activity 1:</strong> <a href="inp150/labs/activity1.htm">Browsing the Web and Viewing Code</a></li>
</ol>
<p>Reading for Next Class Session:</p>
<ul>
<li><a href="http://www.456bereastreet.com/archive/200512/ten_reasons_to_learn_and_use_web_standards/">Ten Reasons to Learn and Use Web Standards</a></li>
<li>Ch. 1 - Web Standards</li>
<li>Ch. 8 - HTML and XHTML Overview (pp 114-119, 128-129)</li>
<li>Ch. 9 - Document Structure (pp 130-137, up to Other Header Elements)</li>
</ul>
</div>

<div class="week past">
<h2>Week 2</h2>
<p>Schedule for the Week:</p>

<ol>
<li><strong>Lecture 2:</strong> <a href="inp150/lectures/coding-web-page.htm">Coding a Web Page</a></li>
<li><strong>Lab 1:</strong> <a href="https://blackboard.wccnet.edu/">Creating Your First Web Page</a></li>
<li><strong>Lecture 3:</strong> <a href="inp150/lectures/block-level-1.htm">Block-Level Elements, Part I</a></li>
<li><strong>Lab 2:</strong> <a href="https://blackboard.wccnet.edu/">Adding to Your First Web Page</a></li>
<li><a href="https://blackboard.wccnet.edu/">Homework 1 Assigned</a></li>
</ol>

<p>Reading for Next Class Session:</p>
<ul>
<li>Ch. 4 - Beginner's Guide to the Server (pp 50 - top 52)</li>
<li>Ch. 10 - Text Elements</li>
</ul>
</div>

<div class="week">
<h2>Week 3</h2>
<p>Schedule for the Week:</p>
<ol>
<li>Questions and Homework 1 Review</li>
<li><strong>Lecture 4:</strong> <a href="inp150/lectures/block-level-2.htm">Block-Level Elements, Part II</a></li>
<li><strong>Lab 3:</strong> <a href="https://blackboard.wccnet.edu/">Practice with Block-Level Elements</a></li>
<li><strong>Lecture 5:</strong> <a href="inp150/lectures/ftp-instructions.htm">FTP</a></li>
<li><strong>Activity 2:</strong> <a href="inp150/lectures/activity2.php">Getting Your Files on the Server</a></li>
<li><strong>Lecture 6:</strong> <a href="inp150/lectures/file-naming.php">Proper File Naming</a></li>
</ol>

<p>Reading for Next Class Session:</p>
<ul>
<li>Ch. 11 - Creating Links</li>
</ul>
</div>

<div class="week upcoming">
<h2>Week 4</h2>

<p>Schedule for the Week:</p>
<ol>
<li><a href="https://blackboard.wccnet.edu/">Checking Your Grades Online</a></li>
<li><strong>Lecture 7:</strong> <a href="inp150/lectures/inline.htm">Inline Elements</a></li>
<li><strong>Lab 4:</strong> <a href="https://blackboard.wccnet.edu/">Practice with Inline Elements</a></li>
<li><strong>Lecture 8:</strong> <a href="inp150/lectures/linking.htm">Linking</a></li>
<li><strong>Lab 5:</strong> <a href="https://blackboard.wccnet.edu/">Practice with Linking</a></li>
<li><a href="https://blackboard.wccnet.edu/">Homework 2 Assigned</a></li>
<li><a href="https://blackboard.wccnet.edu/">Quiz 1 Assigned</a></li>
</ol>
</div>

</body>
</html>

Sparaker
03-21-2007, 04:10 PM
<style type="text/css"><!--
body {font: 12px verdana,geneva,lucida,arial,sans-serif; line-height: 1.5;}
ul,ol {list-style-type: none}
ul {list-style-image: url(triangle.gif);}
ol {list-style-image: url(content-arrow.gif);}
-->
</style>

remove the <!-- and -->

boxxertrumps
03-21-2007, 08:17 PM
Just copy and paste the CSS into the validator.
The "by direct input" tab.

But sparaker is right, the comment tags are outdated.

Twey
03-21-2007, 08:43 PM
Not only that, they'll cause the entire contents of the <style> element to be ignored in true XHTML.