A tool that would help me spot html code errors.

Discussion in 'HTML & Website Design' started by Karabaja, Nov 25, 2007.

  1. #1
    Is there a tool that would pair up all html tags like <tr> <td> etc. and help me spot if there is an extra tag or something else wrong in a source code of a website. I've tried w3c validator on my vbulletin board and there is few errors like:

    end tag for "tr" omitted, but OMITTAG NO was specified.
    
    Opening and ending tag mismatch: div line 154 and body.
    
    </body>
    Code (markup):
    but there is so many tags and it is hard to spot where the error is.
     
    Karabaja, Nov 25, 2007 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Often one missing tag will set off a cascade of errors. It tells you the line where it thinks it first sees the problem-- also further down are Parsing errors. Those usually tell you were the start tag of something is (where it thinks it didn't find a closing tag for).

    I'd just fix the first error, then resubmit to the validator. The number of errors might be halved just by fixing one error.


    If you're using Opera, you can CTRL ALT V (I think) and check the validator really easily.

    Finding missing or double tags is easy. Sometimes the errors are difficult to figure out, like when it insists your <head> has no closing tag and it does (hint: no <title> sets that one off).
     
    Stomme poes, Nov 25, 2007 IP
  3. Karabaja

    Karabaja Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Yes, I know validator tells a line number. But error could still be somewhere else on the page. And from what I've seen at line numbers validator suggests I couldn't see any obvious errors.
    That's why I was hoping there is a tool that would show like a tree view of html code and pair up all the tags.
     
    Karabaja, Nov 25, 2007 IP
  4. SolarCat

    SolarCat Active Member

    Messages:
    100
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    88
    #4
    If you're using Firefox (and there are many good reasons for web developers to do so) get the View Source Chart add-on at Mozilla.org. It does what you're asking in a graphical manner. Very useful.

    I hope this helps.

    Steve
     
    SolarCat, Nov 25, 2007 IP
  5. Karabaja

    Karabaja Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    Thanks SolarCat, I'll try that. Yes, I am certainly using FF :)
     
    Karabaja, Nov 25, 2007 IP
  6. shararti

    shararti Guest

    Messages:
    179
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    u can find many firefox extension for these problems
     
    shararti, Nov 25, 2007 IP
  7. Karabaja

    Karabaja Member

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #7
    Yes, I think I've found a good one:

    http://users.skynet.be/mgueury/mozilla/index.html
     
    Karabaja, Nov 25, 2007 IP