Web Analytics Made Easy -
StatCounter Help with errors from http://validator.w3.org - CodingForum


No announcement yet.

Help with errors from http://validator.w3.org

  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with errors from http://validator.w3.org


    I have this page http://www.jakenoblewebs.co.uk/Pages/jake_noble.php .

    I am validating it here http://validator.w3.org/ .

    I have this error every time, "Line 22, column 30: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
    <table width="20%" id="tables">"

    I have looked at the "EXPLAIN" section but i cannot work it out, i have tried all different combinations of ID="XYZ" and NAME="XYZ"

    I would really like some help on this. Feel free to look at my site and give me some feedback also.

    I am only validation the homepage at the moment, so just ignore the code on the other pages.

  • #2
    span elements may only contain inline level elements, and tables are block level elements. So, you can't wrap it in a span, like to do:
    20: <span class="ntable">
    21: <b>News Items</b>
    22: <table width="20%" id="tables">
    Why don't you use a div instead of a span?
    liorean <[[email protected]]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards