What's the term that refers to attributes that accept no value (i.e. "checked" and "selected")?
The attributes checked and selected, of the <input> and the <option> tags respectively, belong to a group of attributes that don't accept a value.
What's th开发者_运维问答e term that refers to that group of attributes?
Boolean attributes:
Some attributes play the role of boolean variables (e.g., the
selectedattribute for theOPTIONelement). 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")...
The attributes
checkedandselectedof the<input>tag belong to a group of attributes that don't accept a value.
Incorrect. They accept a value that is the same as the name of the attribute.
In HTML 4 you may omit everything except the value.
What's the term that refers to that group?
Boolean.
加载中,请稍侯......
精彩评论