Forum Moderators: mack

Message Too Old, No Replies

document type does not permit element "<td>

document type does not permit element <td>

         

amythepoet

6:26 pm on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I'm checking my document syntax and have found the folloiwng error

document type does not permit element <td> in context of element <td>

I think I have closed all of my tags, I don't know how to fix it

encyclo

6:36 pm on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The validator tells you which line the error is on, so check just before that. You will probably see a
<td>
was used inadvertantly instead of a
</td>
.

amythepoet

6:52 pm on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I see the same problem with many of my pages, and I don't know how to fix it

It looks like this:

<td id="rightframe"><p align="center"><a href="order.html"><img src="imagery/order-now.gif" alt="Click Here To Order One Of Green Widgets" width="200" height="50" border="0" /></a></p>
<p>&nbsp;</p>

tedster

7:28 pm on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In xhtml there must be a closing tag for every element -- but there is no </td> in that mark-up. So if there is another <td> before the first one is closed, then that's the error.

I assume amy is using xhtml because the img tag has an xhtml style closing.

amythepoet

7:53 pm on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, I am using xhtml, correct, I will try and fix it

thanks again