How to fix HTML errors automatically ?

Discussion in 'HTML & Website Design' started by bushib, Mar 26, 2007.

  1. #1
    Hi there,

    I want to know about any good tool/utility to fix the HTML errors in a webpage.


    Any help will be highly appreciated.
    Best Regards
    bushib
     
    bushib, Mar 26, 2007 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    Use the validator.w3.org tool to check for possible errors on your page(s) and use their suggestions / instructions on how to fix them.
    No automatic tool as far as I am aware of.
     
    Clive, Mar 26, 2007 IP
  3. SeLfkiLL

    SeLfkiLL Active Member

    Messages:
    85
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    50
    #3
    You can use something with the Tidy lib to clean up your code, but it doesn't fix HTML syntax errors.
     
    SeLfkiLL, Mar 26, 2007 IP
  4. grezios

    grezios Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    try using firefox as a browser with the web developers plugin while you test your pages https://addons.mozilla.org/en-US/firefox/addon/60
    Works fine for me.
     
    grezios, Mar 26, 2007 IP
  5. Crimsonc

    Crimsonc Peon

    Messages:
    616
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Don't take the shortcut. If you have an error (html error?!) fix it yourself, it's the only way to learn.
     
    Crimsonc, Mar 26, 2007 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    The Tidy utility lists the errors it finds and is an excellent way to catch such otherwise hard to locate mismatched closing tags, missing required attributes and simple typos. It can fix warning level issues, but still requires the author to fix true syntax errors.

    A major benefit to using Tidy is its ability to pretty print the document. This is especially useful to someone like myself, whose main job is to fix other people's code. Tidy cleans the code as well as it can, lists the things I need to look at and reformats with indentions to match the nesting levels of the code.

    cheers,

    gary
     
    kk5st, Mar 27, 2007 IP
  7. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #7
    You can search for errors and suggestions to fix those errors using www.validator.w3.org

    But cannot do everything automatically - As nobody can change your codes automatically :)
     
    MeetHere, Mar 27, 2007 IP
  8. grg

    grg Guest

    Messages:
    2,692
    Likes Received:
    73
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Any automated tool can trash your code, so better do it by hand.
     
    grg, Mar 27, 2007 IP