Website health check errors

I have just done a free online health check for my website www.blitz-it.co.uk and get the following message;

Validation: Invalid
Errors: 60 X-W3C-Validator-Warnings: 16 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8
View results

HTML/XHTML is not valid. To ensure compatibility in various web browsers, operating systems and internet-enabled devices, it is recommended that you fix the above errors.

I am stumped!! Not sure where Ive gone wrong.

I also have this <meta http-equiv=“Content-Type” content=“text/html;charset=ISO-8859-1” >
at the top of each page - I am using the correct coding as all my pages are htm not html, sorry for being dumb but its something ive not had a problem with before

thanks

[FONT=verdana]You are using a lot of outdated techniques (and some proprietary) on that page though I suspect you were attempting to write the page in either HTML 4.01 or XHTML 1.0. Unfortunately you’ve mixed the two of them up so I don’t know which you were trying to write?

Was this page originally written in a WYSINWYG editor before the year 2000 because there is some really ancient code in there that is no longer supported by some browsers and I haven’t seen this century?

Therefore I’ll assume HTML 4.01 thus in that case instead of having this on the first line:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 3.2//EN”>

Replace it with the following:

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

At least then we will be using the more modern version of HTML not something like 3.2 that was superseded in 1999. Really you should use a Strict Doctype though since you are using a lot of deprecated attributes we’ll set it to Transitional or you’ll have to do a major retrofit. Ideally it should be rewritten in Strict. Though purely for the sake of baby steps we’ll use Transitional.

The LINK should be within the HEAD element, remove the propriety dinosaur LAYER element, SCRIPT should be hidden via <!-- comment delimiters –> in fact the JavaScript possibly should be an externally linked file or any occurrences of: </tag> written <\/tag> within the SCRIPT.

All the EMPTY elements don’t need the last forward slash, so remove the ending /> e.g. the META and LINK tags and change from <meta /> to <meta> you aren’t writing XHTML.

The IMG element requires an alt attribute…

Actually, I am going to have to stop there because to be honest there are far too many other minor errors to deal with on that page, and it would be better completely rewritten from scratch. You might be interested in the Sitepoint book: ‘Build Your Own Website The Right Way Using HTML & CSS’ because even though some of the errors aren’t too hard to fix they are far too numerous. It would probably take an hour or more to fix them for the whole site. [/FONT]:slight_smile: