W3C home > Mailing lists > Public > www-validator@w3.org > April 2010

Re: end tag for element "TD" which is not open...

From: David Dorward <david@dorward.me.uk>
Date: Wed, 7 Apr 2010 13:18:32 +0100
Cc: <www-validator@w3.org>
Message-Id: <AA37F748-8488-45D9-A783-2C76FC6BA989@dorward.me.uk>
To: Michael Suhr <ms@suhrsoft.de>

On 5 Apr 2010, at 20:33, Michael Suhr wrote:
> if i check my html-code, i get an error:
>  Line 27, Column 13: end tag for element "TD" which is not open

>   <table id="container" style="width:98%; " border="0" cellspacing="0" bgcolor="#EFEFD0">
>      <tr>
>        <td align="center" valign="middle">
>          <tr>

The end tag for <td> and <tr> is optional, and <td> elements cannot have <tr> elements as child elements., so this "<tr>" means "</td></tr><tr>"


>            <td valign="middle" align="center" height="30">
>              <div style="font-size: 12px">
>                <strong>
>                   Michael Suhr 1994 - 2010
>                </strong>
>              </div>
>            </td>
>          </tr>
>        </td>

So when you get to here, the <td> is already closed.

This shouldn't be a table in the first place though. I suggest you read http://wsc.opera.com/


-- 
David Dorward
http://dorward.me.uk
Received on Wednesday, 7 April 2010 12:19:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:40 GMT