Results 1 to 9 of 9

Thread: HTML question

  1. #1
    Administrator Bok's Avatar
    Join Date
    Oct 2003
    Location
    Wake Forest, North Carolina, United States
    Posts
    24,467
    Blog Entries
    13

    HTML question

    anyone tell me why this line would fail the validator at w3 ?

    <TD class='thread-table2' width='8%'><a href=http://stats.free-dc.org/new/projpage.php?proj=sob>17orBust</a></TD>



    # Error Line 71 column 108: end tag for element "A" which is not open.

    ...new/projpage.php?proj=sob>17orBust</a></TD>

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occured in a script section of your document, you should probably read this FAQ entry.

    ???

    Bok

  2. #2
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    Because there is a previous <a href= that was not closed. When looking at the source, briefly, I found the following line just above...
    Code:
    <td width=40%><a href=http://stats.free-dc.org/new/teamstats.php?proj=sob&team=GaY>GaY
         </td>
    As you can see, it does not have a '</a>' after it, or any others above that entry in that table.

  3. #3
    Administrator Bok's Avatar
    Join Date
    Oct 2003
    Location
    Wake Forest, North Carolina, United States
    Posts
    24,467
    Blog Entries
    13
    hmmm,

    I don't see any previous open A in the source..

    I'm validating http://stats.free-dc.org/users/users_dev.php?name=Bok btw

    Thanks IB!

    Bok

  4. #4
    Stats God in Training Darkness Productions's Avatar
    Join Date
    Dec 2001
    Location
    The land of dp!
    Posts
    4,164
    It has to do with the validator removing the quotes from your links... You'll notice that it shows your src as <a href=http://blahblahblahblah>Blah</a>. Without the quotes, it's invalid, with them, it's valid. The validator is removing them for some reason.

  5. #5
    Administrator Bok's Avatar
    Join Date
    Oct 2003
    Location
    Wake Forest, North Carolina, United States
    Posts
    24,467
    Blog Entries
    13
    aha,

    you got it.

    Though it didn't remove the quotes....

    I didn't have quotes around the link in my source..

    That fixed those errors, man its a PIA making HTML compliant



    Bok

  6. #6
    Peaches Moogie's Avatar
    Join Date
    Mar 2002
    Location
    Peachville
    Posts
    2,463
    Blog Entries
    3
    Heh..it's not so bad once you get the hang of it. Think of it as a jigsaw puzzle.





    irc.aknarra.net #lobby
    irc.free-dc.org #free-dc

  7. #7
    Administrator Bok's Avatar
    Join Date
    Oct 2003
    Location
    Wake Forest, North Carolina, United States
    Posts
    24,467
    Blog Entries
    13
    yeah,

    I've got this

    compliant now. Learnt quite a bit along the way, which I should have a long time ago. Fixed up a lot of it too..

    Now I still have 15 or so more pages to fix too.... I'll get there

    Bok

  8. #8
    Peaches Moogie's Avatar
    Join Date
    Mar 2002
    Location
    Peachville
    Posts
    2,463
    Blog Entries
    3
    Most excellent my friend. Great job as usual!





    irc.aknarra.net #lobby
    irc.free-dc.org #free-dc

  9. #9
    Stats God in Training Darkness Productions's Avatar
    Join Date
    Dec 2001
    Location
    The land of dp!
    Posts
    4,164
    Bok -

    I saved the file, and uploaded, and it had quotes in it... when I did a view source, it had quotes... strangeness.

Posting Permissions

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