wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes HTML validation error: A form for each table row Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML validation error: A form for each table row" Watch "HTML validation error: A form for each table row" New topic
Author

HTML validation error: A form for each table row

Sverre Moe
Ranch Hand

Joined: Jul 10, 2007
Posts: 110
Consider the follow table configuration:



This will display perfectly, with an <form> for each row, but the problem is the configuration is illegal. The HTML validator will complain if I have a <form> within a table any other place than in a <td>. First it will show a warning ("Invalid location of tag (form)") at the beginning of <form>, then it will show an error at the end tag (No start tag (<form> .

My design is that each row will have its own form.

The validation error will go away if I configure the subsequent rows in the following manner.



But this will not display perfectly like the previous configuration. The columns within the second table will not correspond with the columns in the first table.

Anyone know a way to either use solution number 2 where the column from table2 will match the columns from the table1, or some other configuration that will allow me to keep a form for each row in a table

I could set up the outer colums with same width as the inner columns, but I also want to keep them dynamic.

[ May 14, 2008: Message edited by: Sverre Moe ]
[ May 14, 2008: Message edited by: Sverre Moe ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The only you can do to make the nested tables line up is to set absolute widths to all of the table cells.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML validation error: A form for each table row