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

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 UTC