【发布时间】:2023-03-18 23:47:01
【问题描述】:
我的 html 结构如下所示:
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Category</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>john@live.nl</td>
<td>
<form method="post" action="admin.php>
<input type="text" ........
<input type="text" ........
<button type="submit" name="change_category">Update</button>
</form>
</td>
</tr>
</tbody>
</table>
当我在验证器https://validator.w3.org/ 中检查它时;它不会给我一个错误。但我不确定这是否正确......
因为,根据这个话题:Form inside a table;这是不允许的
【问题讨论】:
-
是的,它是有效的。请仔细阅读错误,因为它们充分解释了错误以及验证器返回无效的原因...
标签: html forms html-table