1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

HTML validation issue with <HR>

Discussion in 'HTML & Website Design' started by macdesign, Sep 23, 2004.

  1. #1
    I'm getting a W3C validation error on

    </ul></td></tr></table><HR><table border=0><tr><td valign=top><ul>

    document type does not allow element "HR" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

    if that a problem with the <HR> or something else?
     
    macdesign, Sep 23, 2004 IP
  2. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #2
    What's the URL of the page so we can see the rest of the code? First thought is an opened but unclosed tag somewhere earlier on (that we can't see), secondly the tag is UPPERCASE and what DOCTYPE are you using?
     
    Lever, Sep 24, 2004 IP
  3. macdesign

    macdesign Peon

    Messages:
    568
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's http://www.cool-sites-project.com/html/Arts/index.html
     
    macdesign, Sep 24, 2004 IP
  4. Sholva

    Sholva Peon

    Messages:
    154
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    From first glance I think it's got something to do with your span tags, I'm having a closer look.
     
    Sholva, Sep 24, 2004 IP
  5. macdesign

    macdesign Peon

    Messages:
    568
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think that's it, the code that generates the pages, is sometimes using <SPAN.. and sometimes using <DIV - and I think it needs to be DIV in this case
     
    macdesign, Sep 24, 2004 IP
  6. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #6
    Lever, Sep 24, 2004 IP
  7. Sholva

    Sholva Peon

    Messages:
    154
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can't place TABLE inside SPAN, use the class attribute for the table, or td tags and modify that stylesheet :)

    try to finalize BR's and HR's like: <br/> seeing as they don't have end tags, I know it seems like a pain because it's for xhtml / xml. It makes sense though.
     
    Sholva, Sep 24, 2004 IP
  8. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Use <hr /> instead...

    I guess the validation error was in XHTML... All tags need to be closed - the / basically just acts like a closing tag...
     
    SEbasic, Sep 24, 2004 IP
  9. mykoleary

    mykoleary Peon

    Messages:
    64
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Don't forget that with XHTML, the tags have to be lower case as well.
     
    mykoleary, Oct 9, 2004 IP