Results 1 to 4 of 4

Thread: Getting this error when trying to validate

  1. #1
    Join Date
    Mar 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Getting this error when trying to validate

    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>

  2. #2
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <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 -->

  3. #3
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Just copy and paste the CSS into the validator.
    The "by direct input" tab.

    But sparaker is right, the comment tags are outdated.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Not only that, they'll cause the entire contents of the <style> element to be ignored in true XHTML.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •