W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

Re: <td><form></td>

From: Mark Renouf <mrenouf@sparecycles.net>
Date: Fri, 02 Feb 2001 16:23:45 -0500
Message-ID: <3A7B2561.8090407@sparecycles.net>
To: html-tidy@w3.org
It's actually worse than that. <FORM> tags dont even belong (though are 
tolerated) within a <TR> block. You should actually define it outside 
the <TABLE>, except there is vertical whitespace inserted if  your 
</FORM> is not inside the table. So the common workaround is

    <TABLE>
        <TR>
            <FORM>
                <TD> <input></TD>
                <TD> <input></TD>
                <TD> <input></TD>
                <TD> <input></TD>
            </FORM>
        </TR>
    </TABLE>

which is bad form, but it works "ok".

Lyle Coder wrote:

> I know everyone has run into bad HTML as:
> 
> <td><form></td> before.... and I'm running into it on a site I need to 
> clean up.  What I want to do is basically delete the <td> and </td> as 
> it makes no sense.  How do I do that in tidy?
> 
>  
> 
> Thanks
> 
> Lyle
> 
Received on Friday, 2 February 2001 16:23:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT