PDA

View Full Version : Links making page invalid



twodayslate
Dec 18th, 2008, 01:43 AM
http://validator.w3.org/check?uri=http%3A%2F%2Fpbguntrader.com%2Findex.php&charset=(detect+automatically)&doctype=Inline&ss=1&group=0&verbose=1&user-agent=W3C_Validator%2F1.606

The page should validate but I have messed up links... how do I fix this?

BoldUlysses
Dec 18th, 2008, 04:16 AM
It looks like you have an unencoded ampersand (all ampersand should be "&" instead of simply "&")--and it looks like you've recognized this elsewhere in the document, but missed one (line 237):


Just a reminder that this beta does not contain the <a href="http://pbguntrader.com/viewtopic.php?f=21&amp;t=172"...


Fix that and you're down to 3 errors, which are just conflicts between an element's name and its id. Assuming the ids are just used for stylesheet purposes and changing them wouldn't conflict with the site's functionality, just change the ids to something unique, both in the HTML/PHP and in the stylesheet, e.g.


id="username"

becomes, say


id="username1"

twodayslate
Dec 18th, 2008, 12:58 PM
Thanks!

I don't see the id errors. It says it validates. ;)