Max*_*vis 4 html semantic-markup w3c-validation htmlbutton
根据W3C关于HTML语义写作的规则 - 我们应该如何编写button带有下降元素的元素,我没有意识到它是不是坏了?
在这方面,像这样:
<button>
<div>
<span>'hi'</span>
</div>
</button>
Run Code Online (Sandbox Code Playgroud)
或者只有这个:
<button>'hi'</button>
Run Code Online (Sandbox Code Playgroud)
我在W3C Validator中测试了你的代码,显示的错误是Element div not allowed as child of element button in this context. (Suppressing further errors from this subtree.)
| 归档时间: |
|
| 查看次数: |
95 次 |
| 最近记录: |