1.

Solve : W3C Validation Errors?

Answer»

When I save my web-page index file as .htm, I get a clean W3C validation, but when I save the file as .html, which is what my web-host editor does by default, the index file immediately shows about 80 validation errors. As soon as I resave the index file as .htm, I get a clean slate. I'm using this as my document type:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml" xml:LANG="en">
Thanks,
doubtlessCan you give us a link to the W3C validation page?The validation page is http://validator.w3.org/
Thanks,
Doubtlessdoubtless...

We need a link to the page you, yourself, are trying to validate.Sorry... That's http://doubtlessministries.net
It's a work in progress right now, being edited and resaved a lot. When it gets saved as .html by mistake, the first error I'm seeing has to do with the Thanks,
Doubtlessdoubtless...

The page you submitted here validates fine, at W3C, based on validation for XHTML compliancy.

Depending on what page you want to validate...and to what compliancy you want to validate it to...makes all the difference in the world.

So, if you are using the following code for the page you are CODING...

Quote

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

you'll need to validate as XHTML, not HTML.  That's probably why you're getting the errors.

Make SURE you decide how you want the site to validate...XHTML, or HTML.I guess deciding is most of the work in any job, isn't it? Thanks for your help.
Take care,
Doubtless You're more than welcome...Just as an EXTRA reference, see here: LinkThanks. I just checked that one out. Here's another that I found while browsing:
http://www.w3schools.com/tags/default.asp
Thanks again,
Doubtless


Discussion

No Comment Found