gpt4 book ai didi

html - 指代不接受任何值的属性(即 "checked"和 "selected")的术语是什么?

转载 作者:技术小花猫 更新时间:2023-10-29 12:32:44 26 4
gpt4 key购买 nike

属性checkedselected , 属于 <input><option>标签分别属于一组不接受值的属性。

指代那组属性的术语是什么?

最佳答案

Boolean attributes :

Some attributes play the role of boolean variables (e.g., the selected attribute for the OPTION 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com