Web Hosting Talk







View Full Version : Argh! xHtml Validation :(


GPearce
12-26-2007, 03:29 PM
Hey Everyone
Merry Christmas, to begin with, and A Happy New Year.
Right, ok. I've just been trying to sort my design out on my site, which i'm working on, and i did a check with w3. I got invalid, which doesn't suprise me, but the problems do:
http://validator.w3.org/check?uri=www.gspx.co.uk&charset=%28detect+automatically%29&doctype=Inline&group=0
There were loads of issues with the Meta, which I allowed Dreamweaver to sort out for me, and it doesn't like them, what do I do with it? I'm lost :(

Thanks in Advance!

the_pm
12-26-2007, 04:32 PM
Remember, XHTML documents must have lowercase tags and attributes, and all attribute values require double quotes. Make these changes first, and then see what's left :)

GPearce
12-26-2007, 04:40 PM
<META NAME='keywords' CONTENT='<?php echo $keywords; ?>.'>
<META NAME='Description' CONTENT='<?php echo $metadescription; ?>'>
<META NAME='robots' CONTENT="FOLLOW,INDEX">
<META NAME='revisit-after' CONTENT='1 days'>
<META NAME='author' CONTENT='GSPX http://www.gspx.co.uk'>
<META NAME='copyright' CONTENT='Copyright 2007-2008 GSPX.co.uk'>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1252'>
<META HTTP-EQUIV='Content-Language' CONTENT='en-us'>

That's what I have..

So you mean change it to something like <meta http-equiv=" ?
And when I had double quotes, it singled them out too :(

the_pm
12-26-2007, 04:42 PM
I'm guessing it was probably either tripping up on the all-uppercase letters, or you might have an open quote in there somewhere, and your quotes aren't matching up. I'm seen one missing quote mess up every single line of a document come validation time!

You might get better mileage out of this validator - http://www.htmlhelp.com/tools/validator/ - I happen to find it more accurate and informative than even W3C's version :)

GPearce
12-26-2007, 04:45 PM
OKay done that, now starting to understand, cut down to 11 errors :D
THanks for that, massively :D

the_pm
12-26-2007, 04:51 PM
Yep - the rest of the errors seem pretty simple, mostly missing closing tags and it looks like you started an unordered list but put an object into it without putting it in an <li> - little nagging stuff :)

Aaron700
12-27-2007, 10:05 AM
Line 23, Column 83: required attribute "alt" not specified.

…mg src="/styles/images/welcome.gif" /></center><br/>

after "../welcome.gif" put alt=""

-Aaron