Log in

View Full Version : Resolved Validation problems



sparklingsky
06-10-2009, 01:28 PM
Hi,

I've been trying to validate my coding but I have quite a few errors that are confusing me. I think that part of the problem may be my header.php file. I think the tags and what not are out of place. Could someone please take a look and let me know exactly how it should be set up. If this is not the reason for some of my validation errors, let me know if you could. Html has never been my strong point but I'm trying. Thanks!

My website is : http://vivid-avenue.net.

X96 Web Design
06-10-2009, 01:57 PM
Nothing to do with your head, it's your BODY. You're coding to a different DOCTYPE, instead of xHTML transitional, you want HTML transitional. Below is for xHTML, and how to fix it.

Plus, there's just a few errors, like the ID can only be used once, I noticed one of the errors is from using the ID wrapper more than once.

You also have a empty TITLE tag in your Body, that's causing an error.

And all IMG tags need an ALT attribute. Simply add alt="" to all your IMG tags.

You also have a bunch of end tags, which aren't open... For example, you have an </a> tag, but there's not any <a> tags open.

And for your Doctype, you need to end IMG tags like this: />. Otherwise you'll get a bunch of errors. Same with <br> tags.

There's also a place or two where you have <Posted By, which it parses as an HTML tag, try using &lt; Posted By instead. Once you fix that, it'll get rid of a bunch of errors below it.

Hope this helps.

// X96 \\

sparklingsky
06-10-2009, 02:24 PM
Ah thanks so much, so far I've gotten down to 21 errors. I just had a question. You said I had </a> but no <a> tag was open. I used </a> to end my links, should I be using something else? Because I'm pretty sure all of the </a>'s in my coding are closing a link tag. I'm just bit confused about that.

Again, thank you so much.

X96 Web Design
06-10-2009, 02:28 PM
You're using the right syntax, but maybe in the wrong way. There are certain tags that are "block" tags, and "inline" tags. an H2 element is a Block, and an A is an inline. And inline tag cannot have a block tag inside of it, or it will produce an error.

So check that you don't have this:

<a href="link.html"><h2>Header Title</a></h2>
That will produce a whole bunch of errors. Fix it by using this:

<h2><a href="link.html">Header Title</a></h2>

Hope this helps...

// X96 \\

sparklingsky
06-10-2009, 02:39 PM
Oh okay, I see what you mean. I believe that I've corrected that. Another error I seem to be seeing quite often in this list is "end tag for "div" omitted, but OMITTAG NO was specified" I'm not sure what is meant by this.


Thanks!

X96 Web Design
06-10-2009, 03:06 PM
Basically, it means you have a <DIV> tag, but no </DIV> tag to end it. Make sure that all your DIV tags have an accompanying </DIV> tag.

Also, just 'cuz I wrong in uppercase - don't. If you write in uppercase, it'll show as an error.

Cheers,
X96

sparklingsky
06-10-2009, 03:25 PM
Oh okay, I see. I believe that I have fixed everything and my coding is VALIDATED. Thank you SO much.