属性checked
和 selected
, 属于 <input>
和 <option>
标签分别属于一组不接受值的属性。
指代那组属性的术语是什么?
最佳答案
Some attributes play the role of boolean variables (e.g., the
selected
attribute for theOPTION
element). Their appearance in the start tag of an element implies that the value of the attribute is "true". Their absence implies a value of "false".Boolean attributes may legally take a single value: the name of the attribute itself (e.g.,
selected="selected"
)...
关于html - 指代不接受任何值的属性(即 "checked"和 "selected")的术语是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6188297/