Log In · Register

 
 
Closed TopicStart new topic
validation
Alk3
post Jul 14 2005, 02:53 PM
Post #1


..Michelle
******

Group: Member
Posts: 1,002
Joined: Feb 2004
Member No: 3,282



I'm trying to validate a site that I'm working on, but each time I try to fix the error, more errors occur. It's driving me crazy, because right now, I only have one error.

Click here. Anyone know how to fix that without having to remove it completely?..
 
whomps
post Jul 14 2005, 03:59 PM
Post #2


:hammer:
*******

Group: Staff Alumni
Posts: 9,849
Joined: Mar 2004
Member No: 7,700



Does it have anything to do with the space before the > ?
blink.gif Sorry, I may sound like an idiot.
 
Alk3
post Jul 14 2005, 04:18 PM
Post #3


..Michelle
******

Group: Member
Posts: 1,002
Joined: Feb 2004
Member No: 3,282



QUOTE(x_angawhomps @ Jul 14 2005, 3:59 PM)
Does it have anything to do with the space before the > ?
blink.gif Sorry, I may sound like an idiot.
*

what space? tongue.gif
that's the code
 
*mipadi*
post Jul 14 2005, 05:16 PM
Post #4





Guest






On line 15--I think you forgot to close the first <td> tag. (I copied the code and marked the tag in question off with three asterisks.)
CODE
<br /><div align="center">
<table cellspacing="0" cellpadding="0" align="center"><tr>***<td valign="top">***<table cellspacing="0" cellpadding="0" align="center">

It is left open, but on line 53 (the line that generates the error) you open another <td> tag, which you can't do until you close the other one.
 
Alk3
post Jul 14 2005, 05:29 PM
Post #5


..Michelle
******

Group: Member
Posts: 1,002
Joined: Feb 2004
Member No: 3,282



^ Thanks! That worked, but now I have a new error :\
 
*mipadi*
post Jul 14 2005, 05:32 PM
Post #6





Guest






What is it?
 
Alk3
post Jul 14 2005, 05:34 PM
Post #7


..Michelle
******

Group: Member
Posts: 1,002
Joined: Feb 2004
Member No: 3,282



HTML
Line 57, column 53: document type does not allow element "table" here; missing one of "th", "td" start-tag

...ng="0" cellpadding="0" align="center"><tr><td valign="top"><table cellspacing

The mentioned element is not allowed to appear in the context in which
you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

I haven't tried much yet, but from what I did try, I got up to 8 more errors.
 
*mipadi*
post Jul 14 2005, 05:40 PM
Post #8





Guest






I haven't looked at it in detail, but make sure that <table> tag on line 57 lies within a <td> tag. In XHTML 1.0, no tags may fall outside a <td> tag (except for <tr> tags and the opening and closing <table> tag, of course).
 
Alk3
post Jul 14 2005, 06:13 PM
Post #9


..Michelle
******

Group: Member
Posts: 1,002
Joined: Feb 2004
Member No: 3,282



I just tried that & it became valid.. problem is--the site looks all strange now. The tables are out of place.. hm..
 
delphi
post Jul 18 2005, 07:28 AM
Post #10


Senior Member
***

Group: Member
Posts: 66
Joined: Jul 2005
Member No: 166,231



not all sites will validate if you want them to look right.

try using a table within a div instead of a table within a table...

i havent actually looked at your site though, so dont shoot me if im totally off.
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: