aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Nesting forms and tables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Nesting forms and tables" Watch "Nesting forms and tables" New topic
Author

Nesting forms and tables

Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
What are the rules for forms inside tables?
I am sure that one can have a table or tables in a form. Also, I am sure than one can have a form in a table cell.
I do not know, and have been unable to find out for sure, whether one can have a form within a table, which spans several cells of the table. For instance, <TABLE><TR><FORM><TD></TD><TD></TD></FORM></TR></TABLE>. Browsers seem to think that this is OK, but my HTML checker (JTidy) doesn't like it.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
you can have the form inside a td tag or outside a table...
Earlier versions of bowsers would not of shown the table, modern day browsers will, but it is not good practice and not standards compliant.
Eric
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
In fact, I concluded this myself. Unfortunately, it meant a bit of duplication in the HTML.
It's a shame that a form can only span a single cell or a whole table, not just some cells, but I have to stick to the rules.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Nesting forms and tables