是否有任何引用显示某些标签的默认属性值?例如,如果我写:
<form>
...
</form>
它呈现为这样的东西:(我认为)
<form action="" method="get" enctype="application/x-www-form-urlencoded">
...
</form>
或<input></input>
呈现给 <input type="text"></input>
我在哪里可以找到所有标签的信息?
最佳答案
W3C 引用资料可能是您最好的选择。
- 对于 HTML 4:http://w3.org/TR/html401/interact/forms.html#h-17.3
- 对于 HTML 5:http://www.w3.org/TR/2011/WD-html5-20110525/forms.html#the-form-element
通常,找到正确页面的快速方法是使用 Google(正如@DTDesign 所指出的)
<name of the element> site:w3.org
只需跳过 w3schools 垃圾,寻找 w3.org
命中,您就可以了。
关于html - 标签的默认属性值是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17546362/