1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> 5 <title>表单表格嵌套</title> 6 <meta name="keywords" content="关键字列表" /> 7 <meta name="description" content="网页描述" /> 8 <link rel="stylesheet" type="text/css" href="" /> 9 <style type="text/css"> 10 11 </style> 12 <script type="text/javascript"></script> 13 </head> 14 <body> 15 <form name='form1' method='get'> 16 <table width='500' rules='all' border='1'> 17 <tr> 18 <td>用户名:</td> 19 <td><input type='text' name='userName' size='20'></td> 20 </tr> 21 <tr> 22 <td>密码:</td> 23 <td><input type='password' name='userPwd' size='20'></td> 24 </tr> 25 </table> 26 <table> 27 <tr border='0'> 28 <td><input type='submit' value='确认'></td> 29 </tr> 30 </table> 31 </form> 32 </body> 33 </html>
效果图: