I want to check if there are any errors in my coding. My site's ranking has dropped and someone suggested me to check for html errors. Is there any site or software to check it?
| SitePoint Sponsor |

I want to check if there are any errors in my coding. My site's ranking has dropped and someone suggested me to check for html errors. Is there any site or software to check it?


Yes, Guido linked to the HTML validator, which you should use first. Then there is also the CSS validator, which you may need too:
http://jigsaw.w3.org/css-validator/

Thanks people!!!


As has been suggested the W3C validator is the best resource for this. I would like to mention that I have become a big fan of the text editor CODA, as it has a built in , line by line , descriptive error checker. It also works with HTML/PHP, for dynamic sites. So I use that as my first quickie step... and once everything seems clear give it a once ( and seldom twice ) over at W3C.
Brilliant ideas, elegant execution.
Graphic Design, Art Direction, Copywriting and Web Design.

It gives the following error and other similar errors. Where (Which file) to correct these errors?
Line 66, Column 362: Attribute name not allowed on element meta at this point.
…k, ACCA UK, ACCA world, F1, F2, F3, F4, P1, P2, Student Accountant magazine" />



Brilliant ideas, elegant execution.
Graphic Design, Art Direction, Copywriting and Web Design.


The file you validated (the html page) at around line 66). Is this a meta keyword element in your body section? We can only guess without seeing a link.
Be aware that it's only for Mac. I'm sure other code editors do the same. Doesn't Dreamweaver have something like this?Where can I find CODA?




You have two meta keyword entries on that page, so maybe it's warning you that the second one doesn't belong there. It looks like a plugin of some kind is entering it.
You also have the words "ACCA Past Papers" appearing at the top of the page, which seem to be sitting just below the <body> tag, which need to be removed. You'll have to dig into the WP files to find where all these bits reside.



Yes, Dw has a built in validator and highlights invalid code in code view.
I find this addon for Firefox useful though.
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge
I can't argue with the w3.org validator. It is technology-agnostic and singular of purpose. If I might chip in here, I've built a validator on top of validator.nu, which is also what the w3 uses. It's called http://html.validator.pro. It doesn't do anything fancy, but extends the w3 validator with the capability of multiple pages, such that you might be able to check every page within a website in one go. Hopefully it can speed up your workflow and make life easier for you. Please let me know if you find it useful or not.
Best Regards,
Scott
Last edited by Stevie D; Jan 7, 2013 at 14:27. Reason: Email address removed
Bookmarks