[英]Is “<tr><th/><td/></tr>” a legal HTML snippet?
I have a HTML code snippet: 我有一个HTML代码段:
<table>
<tr>
<th>a header</th>
<td>some content</td>
</tr>
</table>
the rendering is as it would be a table with two columns. 渲染就像是一张有两列的表格。 Is it a legal HTML code?
它是合法的HTML代码吗?
For which version of HTML? 哪个版本的HTML? The W3C validator is pretty definitive:
W3C验证器非常确定:
http://validator.w3.org/check http://validator.w3.org/check
It validates ok as HTML 4.01 transitional. 它将确定为HTML 4.01过渡版本。
Yes it is valid ! 是的,这是有效的!
Use http://htmlhelp.com/tools/validator/direct.html.en 使用http://htmlhelp.com/tools/validator/direct.html.en
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.