W3C Validation... SO CLOSE!!!

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

The Infinity

Thread Starter
Joined
May 11, 2005
Messages
579
I have been working on my website trying to make it W3C Valid but I have stuck with only 2 errors left. I have tried just about everything and I'm kinda stuck. I have 2 floating <td>'s but I'm not sure where to properly close them off. I feel I may have a table error thats causing it. I also have CSS controlling everything but I'm not sure if that could be causing it.

Here is the errors:

http://validator.w3.org/check?uri=h...charset=(detect+automatically)&doctype=Inline

Code:
# Error  Line 171 column 19: document type does not allow element "td" here.

<td class="maincol">

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

# Error Line 393 column 3: document type does not allow element "td" here.

<td>
Here is the link to my website: http://www.softhardware.net/

I would have posted the source here but TSG said it was too long. :)
 
Joined
Apr 30, 2005
Messages
3,012
Well I just quickly skimmed thru your page source and couldn't find a closing </td> tag before the new <td class="maincol"> tag was open.
 

The Infinity

Thread Starter
Joined
May 11, 2005
Messages
579
Yeah if I try to close it off my webpage goes crazy. If I try to put it into a table it wacks out even more. I'm not sure what I can do about it :/
 

The Infinity

Thread Starter
Joined
May 11, 2005
Messages
579
Yeah I was able to get it thanks to good ole brendandonhu. The problem was the two <td> tags I had needed to be closed infront of one another. Here is an example.

What I had:
Code:
<td>

more code here

<td>
What fixed it:
Code:
</td>
<td>

more code here

</td>
<td>
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Top