您的位置:首页 > 其它

Invalid location of tag

2016-04-09 16:38 477 查看
写表单时报错

Invalid location of tag (th).

th应当写在tr内

<tr><th></th></tr>


Invalid location of tag (tr).

tr应当写在table内

<table><tr></tr></table>


我修改后的代码

<table>
<caption>一个简单的加法器</caption>
<tr>
<th>加数</th>
<th></th>
<th>被加数</th>
</tr>
<tr>
<td><input type="text" name="a"> </td>
<td>+</td>
<td><input type="text" name="b"></td>
<td><input type="submit" value="=">
</tr>
</table>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: