Felipe Gasper <fg*********************@uiuc.edu> wrote:
I'm trying to set up an HTML table such that each row can have its own
HTML form that spans multiple cells.
Why?
Does anyone know a standards-compliant way of doing this?
There is none. A table row, <tr> element, can be contained in a form,
<form> element, only if the form contains the entire table, <table>
element, in which the table row appears as a subelement. This is direct
consequence of HTML syntax.
I don't know what the purpose is, but you could use a set of single-row
tables, each contained in a form of its own. The appearance of the set
would not be tabular-looking by default, since a browser would allocate
widths for the cells in one table irrespectively of allocation of other
tables. But using CSS you could specify the widths in a manner that might
produce a tabular look. The details really depend on what the cells
contain.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html