blogstash_com — 2011-10-26T00:44:00-04:00 — #1
I have been trying to validate HTML code on my blog. So I went to use http://validator.w3.org/. And since I really dont know how to fix the stated errors. I used the Validate by Direct Input option which basically you can copy your file from your theme and paste it there and then it will give you all the errors and it will also generate a valid code for the same file.
So, I started going through my files one by one. But the fully thing is when I take the actual "validated" file that it has given me and paste it back to check for validation, it gives me (sometimes) even more errors than my original file?....
Does anyone know whats up with that? Am I missing something? Also is there any easy way to fix the errors? ...
Thank you all in advance.
ralphm — 2011-10-26T03:30:26-04:00 — #2
Not quite sure what you mean by that. The validator points out errors, but doesn't fix them for you.
Sometimes there can be many errors that are cause by one or two mistakes early in the file that cause a cascade of errors down the page, so don't lose heart. There may just be a few typos in there. To help further, though, we'd need to see the page in question and have a look at the validator results. Or at least post a screen shot of the validator erros so we can help you interpret them.
xhtmlcoder — 2011-10-26T12:27:50-04:00 — #3
Ralph, I believe the OP was talking about TIDY http://validator.w3.org/#validate_by_input+with_options having checked "Clean up Markup with HTML-Tidy"? I assume the Blog is dynamic and if so that might be causing some errors and the Tidy Lint isn't prefect either. Though like was mentioned cascading errors can occur.
blogstash_com — 2011-10-28T01:11:25-04:00 — #4
Yes, that is exactly what I am talking about.
blogstash_com — 2011-10-28T01:16:00-04:00 — #5
Thanks for the reply. I am talking about "Clean up Markup with HTML-Tidy" that outputs the valid code for your invalid codes.
I dont knwo if this helps or not, but here is the page on validator.w3.org with my results on it.
I am testing it from my blog BlogStash.com.
Thank you both in advance.