- From: Dave J Woolley <david.woolley@bts.co.uk>
- Date: Tue, 23 Jan 2001 11:42:24 -0000
- To: "'www-html@w3.org'" <www-html@w3.org>
> From: Mike Krier [SMTP:mkrier@us.ibm.com] > > 5. For some reason, a form tag cannot be within a tr or td element, which > is frequently done to avoid unwanted line breaks. > [DJW:] Most points agreed with previous responders, however, whilst anything but TH and TD are forbidden in TR (Netscape, in particular, tends not to parse the HTML and responds to tags out of context), FORM is perfectly OK in TD, as can be verified by looking at the definition of %Flow; or %flow; in the DTDs. This is valid XHTML 1.0: <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head> <title>Test</title></head> <body> <table> <tr> <td> <form action="http://localhost/dev/null" method="get"> </form> </td> </tr> </table></body></html> and this is valid HTML 4.01: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd"> <title>Test</title> <table> <tr> <td> <form action="http://localhost/dev/null" method="get"> </form> </td> </td> </table> -- --------------------------- DISCLAIMER --------------------------------- Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of BTS. >
Received on Tuesday, 23 January 2001 06:42:14 UTC