Forum Moderators: open

Message Too Old, No Replies

<table> syntax

         

KathyJones

2:45 am on Apr 18, 2003 (gmt 0)

10+ Year Member



Got an error:
"end tag for "TABLE" which is not finished (explain...).
</table>"

How come? I did the following inside of a big table outside:

<td>
<table border = "1">
<tfoot>
<tr>
<td>That's a footer for a table</td>
</tr>
</tfoot>
</table>
</td>

DrDoc

2:54 am on Apr 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You usually get that error if there are previous errors in that same code block. In this case, the problem is that you're only using tfoot.

According to the W3C recommendations you must use all: thead, tbody, tfoot... So, use all or none of them :)

DrDoc

2:57 am on Apr 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also, avoid using spaces in your attribute definitions. Change
border = "1"
to just
border="1"
.

KathyJones

3:09 am on Apr 18, 2003 (gmt 0)

10+ Year Member



oh ok, that works, thank you!

g1smd

6:36 pm on Apr 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This sort of typo has to be the one of the best reasons for actually using a validator in the first place.

Even if you aren't too bothered about coding to standards the validator is a useful tool to find typing errors, nesting errors, and other little problems that stop a site working as the designer intended.