Forum Moderators: phranque

Message Too Old, No Replies

W3C Validation

Error Free To Be Valid?

         

jpell

11:59 pm on Mar 28, 2004 (gmt 0)

10+ Year Member



Hello All,
I was wondering, I have one error on most of my pages when checked with W3C, and that's all. In order to have a page considered valid, must it be 0 errors, 0 warnings, or just 0 errors?
Also, if having an error causes a page not to validate, does that have any effect on this (I don't know what to call it):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> at the top of my pageswith regards to robots?
Thanks,
JPell

encyclo

12:14 am on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Validation (or rather, lack of) can have some impact on whether a search engine bot can read your page, but validation is not considered vital in that respect - the vast majority of web pages are invalid but still get crawled.

The DOCTYPE definers the version of HTML you are using - it is vital for validation. I don't know if you made a cut-and-paste error with your example, but your doctype should read like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

What is the one error that you get when you validate your page?

jpell

1:18 am on Mar 29, 2004 (gmt 0)

10+ Year Member



Hey Encyclo,
This is the error:
Line: -1
File not found [widgets.com...] Not Found

Thanks for the heads up on the doctype. It was not a cut and paste error, however it will be a cut and paste fix;)
JPell

encyclo

1:28 am on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your error occurs when you're using the CSS validator, not the HTML validator. You have no further errors because the validator can't find the stylesheet. You should change this line in your HTML:

<link href="style.css" rel="stylesheet" type="text/css">

and make sure it points to your stylesheet if you have one (if you don't, comment out the line or remove it).

The HTML validator can be found here:

[validator.w3.org...]

jpell

3:26 am on Mar 29, 2004 (gmt 0)

10+ Year Member



Encyclo,
You are a great example of why I love the www! Thanks a million!
JPell