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

Re: a question about table/form nesting

From: Charles Reitzel <creitzel@rcn.com>
Date: Thu, 20 Mar 2003 11:55:09 -0500
Message-Id: <>
To: Hai He <hhcsbu@yahoo.com>
Cc: html-tidy@w3.org

Hello Hai,

Assuming you have a recent version of Tidy, the basic problem is that the 
page is mixing form and table elements in unsafe ways.  It is not unusual 
for inexperienced web developers to do this kind of thing, however.

If you cannot update the page, try the --force-output option to force Tidy 
to do the best it can.  There are no guarantees that the results will be 
what you want.  It may or may not be better than the original.  I tried 
your example, and Tidy seems to do OK with it.

If you can update the page, move the <form> and </form> tags to just before 
and just after the the <table> and </table> tags, respectively.  E.g.

      <td><input ... >
      <td><input ... >
<input type=submit ... >

If you need several forms within a single layout table, use nested tables 
and put the entire form within a single cell.  If necessary, you can merge 
cells in the outer table using rowspan and colspan.

take it easy,

P.S. This is one for the FAQ

At 07:36 AM 3/20/2003 -0800, you wrote:

>Dear all,
>I am using the latest version of Tidy to tidy a HTML page: 
>After that, I find that the end FORM tag for "simple search" is missing. I 
>am wondering if somebody can help me out. I would appreciate it so much.
>Hai He
Received on Thursday, 20 March 2003 11:59:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:53 UTC