/    Sign up×
Community /Pin to ProfileBookmark

Validation Errors

Now that I have my nav bars working thanks to you guys (I think I love you!! :p) I’ve run the validation programmes and they are coming up with errors. Some of which I haven’t a clue about. Some of the errors showing are just < – how can it be an error? Another one that’s showing up is a pile of script that shows if you view source on the actual web page but doesn’t show at all on my original file – I don’t know how I go about correcting that!

And I think my DOCTYPE is wrong.

Just when you think it’s going right…………………………….?

[url]http://www.dogsandco.orgfree.com[/url]

(Just in case anyone is brave enough to have a look)

And if I’ve put this in the wrong bit, could ya give me a push as to where to post it (and don’t say “on another forum”)

Thank you all.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@CentauriFeb 04.2008 — New pages should really use a strict doctype, but to do so will require removal of all those deprecated tags such as <center> and <font> and attributes like bgcolor and align....

If you use an xhtml doctype as you have, then all self closing tags (ones that don't use separate </ > closing tags) must end with a space and "/" - ie.[CODE]<img src="images/dogs_co_purple.gif" width="468" height="60" alt="images/dogs_co_purple.gif" />[/CODE]and not [CODE]<img src="images/dogs_co_purple.gif" width="468" height="60" alt="images/dogs_co_purple.gif">[/CODE]The validator will consider such tags as being unclosed and generate an error.

If you elect to go with an html doctype (like html 4.01 transitional), then the space and "/" should NOT appear in self closing tags. Pick one doctype or the other and be consistant with the syntax and most of those validation errors will be solved.

The extra markup at the end of the file is inserted by the web host, and is what causes those annoying popup things - unfortunately, the only way to get rid of that is to change web hosts.
×

Success!

Help @Alison556 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...