SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Zealot Fruit & Veg's Avatar
    Join Date
    May 2000
    Location
    UK
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS List Validation Error

    I get this error in the w3 validator;

    Line 62, column 29: document type does not allow element "A" here (explain...).

    <li><a href="#2" class="list">Blah</a></li>

    Does anyone know what the problem might be?

    The tags around are all opening and closing correctly.

    I pressume I'm putting the 'class' element in the wrong place for a list?
    USBtastic - UK Gadgets Blog
    SmartGeezer - UK Men's Clothing Blog
    Individualitee - Great Tshirts
    Shiola - Complete Waste of Time

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Fruit & Veg
    I get this error in the w3 validator;

    Line 62, column 29: document type does not allow element "A" here (explain...).

    <li><a href="#2" class="list">Blah</a></li>

    Does anyone know what the problem might be?

    The tags around are all opening and closing correctly.

    I pressume I'm putting the 'class' element in the wrong place for a list?
    Can we see the other code around that error? It may not be that particular line, but something a few lines above or below it that triggers that error, like an unclosed tag.

  3. #3
    SitePoint Zealot Fruit & Veg's Avatar
    Join Date
    May 2000
    Location
    UK
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Below is an example of a whole section;

    <p>
    <h2 class="h2">title</h2>
    <ol>
    <li><a href="#33" class="list">link 1</a></li>
    <li><a href="#34" class="list">link 2</a></li>
    <li><a href="#35" class="list">link 3</a></li>
    </ol>
    USBtastic - UK Gadgets Blog
    SmartGeezer - UK Men's Clothing Blog
    Individualitee - Great Tshirts
    Shiola - Complete Waste of Time

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Fruit & Veg
    Below is an example of a whole section;

    <p>
    <h2 class="h2">title</h2>
    <ol>
    <li><a href="#33" class="list">link 1</a></li>
    <li><a href="#34" class="list">link 2</a></li>
    <li><a href="#35" class="list">link 3</a></li>
    </ol>
    Okay, that doesn't seem to tell me anything. Can you post the whole source code to your page? (Generated source from View Source in the browser if this is a dynamically generated page ).


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
  •