2
我有以下簡單的HTML表單:嵌入在<table>標記中的HTML表單無法正確呈現?
<html>
<head>
</head>
<body>
<table border="0" cellpadding="2" cellspacing="0" width="400">
<form name="logon" method="post" id="logon" action="take.php">
<tr>
<td tabindex="0">User ID </td>
<td>
<input name="login" maxlength="12" size="15" value="" title="User ID">
</td>
<td class="loginlabel"> </td>
</tr>
<tr>
<td tabindex="0">Password </td>
<td>
<input type="password" name="password" maxlength="12" size="15" value="">
</td>
<td class="lable"> </td>
</tr>
<tr>
<td colspan="3">
<p class="pushButton"><button type="submit" form="nameform" value="Submit">Submit</button></p>
</td>
</tr>
</form>
</table>
</body>
</html>
當我在任何瀏覽器中打開這個頁面,檢查元素,我發現HTML形式的怪異結構。我發現<form>
標籤立即關閉開始後, 請找HTML表單檢查的屏幕截圖,
這背後的原因是什麼?
在我的情況下,'form>'的父標籤是關閉的嗎?它在'
'