Topic: validation problem... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22450" title="Pages that link to Topic: validation problem... (Page 1 of 1)" rel="nofollow" >Topic: validation problem... <span class="small">(Page 1 of 1)</span>\

 
Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-06-2004 01:34

Can someone tell me what the issue is with this:

code:
479: <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
480: <thead>
481:
482: <!-- guest welcome message -->
483: <tr>
484: <td class="tcat" align="center" colspan="6">Welcome to the Thunderbird Talk.</td>
485: </tr>
486: <tr>
487: <td class="alt1" colspan="6">
488: If this is your first visit, be sure to check out the <a href="http://www.efhs84.com/forum/faq.php?s=d61e5dfa0ea163bbd9c773e1a18577da&amp;"><strong>FAQ</strong></a> by clicking the link above.
489: You may have to <a href="register.php?s=d61e5dfa0ea163bbd9c773e1a18577da&amp;"><strong>register</strong></a> before you can post: click the register link above to proceed.
490: To start viewing messages, select the forum that you want to visit from the selection below.
491: </td>
492: </tr>
493: <!-- / guest welcome message -->
494:
495: </thead>
496: </table>



I'm getting Line 496, column 7: end tag for "table" which is not finished but I can't figure out why. Maybe I've just been looking at this too long...

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

posted posted 07-06-2004 01:38

If you use THEAD I'm fairly certain you need to use TBODY and TFOOT as well

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-06-2004 01:52

I just open the DTD of XHTML 1.0 strict and the definition of the TABLE element is :

code:
<!ELEMENT table
(caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))>

[edit]And here goes the definition of the TABLE element in HTML 4.01

code:
<!ELEMENT TABLE - -
(CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>

[/edit]

So, YES there should be at leat a TBODY, or some TR ( as direct children of the TABLE element ) in a TABLE element.



(Edited by poi on 07-06-2004 01:55)

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-06-2004 02:48

Ah. Ok. That did it. I didn't really need the thead anyways (it's not my code I'm working with). I commented that thead tags out and it validated fine....



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu