SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Oct 2003
    Location
    Florida
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validation Problem

    Okay heres my problem: I'm using http://validator.w3.org/
    Line 24, column 307: document type does not allow element "a" here; missing one of "object", "span", "bdo", "applet", "iframe", "tt", "i", "b", "u", "s", "strike", "big", "small", "font", "em", "strong", "dfn", "code", "q", "samp", "kbd", "var", "cite", "abbr", "acronym", "sub", "sup", "label", "ins", "del" start-tag

    ...ight="23" alt="" /><a href="news.php"><img border="0" src="images/ttnews.gif"

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    And here is line 22,23,24,25,26
    HTML Code:
    <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
        <tr>
            <td class="ttbg"><img border="0" src="images/ttleft.gif" width="376" height="23" alt="" /><a href="home.php"><img border="0" src="images/tthome.gif" width="62" height="23" alt="" /></a><a href="portfolio.php"><img border="0" src="images/ttport.gif" width="59" height="23" alt="" /><a href="news.php"><img border="0" src="images/ttnews.gif" width="61" height="23" alt="" /><a href="contact.php"><img border="0" src="images/ttmail.gif" width="55" height="23" alt="" /></a><img border="0" src="images/ttright.gif" width="178" height="23" alt="" /></td>
        </tr>
    </table>
    Anyone see anything wrong with it? Thanks in advance.

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2004
    Location
    Madison, WI
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have to close your link to portfolio.php before making the link to news.php, ie...

    now:
    HTML Code:
    <a href="portfolio.php"><img... /><a href="news.php"><img... />
    should be:
    HTML Code:
    <a href="portfolio.php"><img... /></a><a href="news.php"><img... />

  3. #3
    SitePoint Addict
    Join Date
    Oct 2003
    Location
    Florida
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ahhh didn't see that, thank you Hate when small things slip my tired eyes.

  4. #4
    @alexstanford Alex's Avatar
    Join Date
    Apr 2004
    Location
    Jacksonville, Florida
    Posts
    757
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by LiveWire
    ahhh didn't see that, thank you Hate when small things slip my tired eyes.
    It happens to the best of us.
    Alex Stanford @alexstanford tumblog about.me in fb G+ K
    TechTalkin The Premier Community for Technology Enthusiasts and Professionals
    Full Ambit Media Zero Sacrifice Web Design & Development; Made in the USA @fullambit in fb G+ K


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
  •