How to fix HTML errors?
I'm really not good in HTML and I have so many errors in my HTML. (711 errors and 195 warnings) I got the results from http://validator.w3.org#
There are recommendations on how can I fix the errors but I still can't get it. Do you know a software that can automatically fix it? Or can anyone help me because right now I'm so confuse. Actually, I don't know if I have to fix these errors because when I'm viewing my blog, it looks fine....
You can check the result here: http://validator.w3.org/check?uri=http%3A%2F%2Fwazzup-web.blogspot.com%2F&charset=(detect+automatically)&doctype=Inline&group=0&No200=1&user-agent=W3C_Validator%2F1.654
THANKS IN ADVANCE.
serpico posted this at 12:03 — 29th May 2009.
They have: 121 posts
Joined: Aug 2008
I would perhaps try the transitional XHTML Doctype to start with instead of your current one and see if that reduces the errors somewhat.
I've never seen CSS declared with markup tags like this before. Perhaps someone could advise you on its validity.
Eg.
serpico
greg posted this at 12:25 — 29th May 2009.
He has: 1,581 posts
Joined: Nov 2005
As I said in the other thread, change your document type to html 4 transitional and you have only 150 errors to deal with. That's nearly four fifths of your errors gone.
It really doesn't matter which you use unless for some reason you need a specific one. I only use XHTML mostly as I code that way anyway.
Some people argue that validating means nothing, but it is untrue. While your site being valid doesn't necessarily make it better, work 100% or even look the same in all browsers, it does at least ensure you have correct HTML and CSS code.
It isn't the end of the world if you have errors, but fixing them teaches you to write good HTML in my opinion. It shows common mistakes and things you shouldn't do (to a point of course).
wazzupweb posted this at 03:44 — 30th May 2009.
They have: 63 posts
Joined: May 2009
I'm sorry Greg, but I don't get it... How can I change my doc type to html 4 transitional? Please help me. I don't have any knowledge about these things...
greg posted this at 14:09 — 30th May 2009.
He has: 1,581 posts
Joined: Nov 2005
The doctype is the declaration you make at the top of a file that declares that file is to be used for a HTML document.
Info about Doctypes and how to change yours
Once you change it, go back to W3C and try to fix as many errors as you can. You will be able to fix most of them fairly easily, and some not so easy.
Some will be tricky to fix as you use third party code and plugins, like Twitter, and often their code doesn't validate.
But the more you fix errors, the more you learn about how to write better HTML, and the more chance you site has of pleasing search engines.
It's important to note that your site validating with W3C doesn't necessarily make SE's like the site any better, they will do that if your code is written correctly, and validation just helps you do that.
wazzupweb posted this at 03:07 — 31st May 2009.
They have: 63 posts
Joined: May 2009
WAAAAAAAHHH GREG!!!!!!!!! from 711 errors!!! it became 148 errors and 90 warnings!! how cool is that?????!!! THANK U SO MUCH!!! but wait, is it still the same like before?? I already changed my doctype to transitional.?? :)
benjy posted this at 08:25 — 5th June 2009.
They have: 32 posts
Joined: Jun 2009
Hi there.
One thing to remember for any future projects is:
Test often, test early.
If you start validating any code from the outset of your project, it will be a whole lot easier to manage.
Also, I have saved templates for just the Header sections, which include the Doctypes etc. Any new project, I can simply start with an already validated and meaningful header.
Hope this will help you..
Kiss Computing
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.