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

标签 html terminology

属性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/

相关文章:

javascript - onmousedown 事件不是连续事件吗?

scheme - SICP 术语 : difference between procedure and operation

c# - 在 ASP.NET 中, 'ASP' 代码叫什么?

cpu-usage - CPU 使用率和 CPU 使用率之间的区别?

ruby-on-rails-3 - Ruby On Rails 与 HTML5 和 CSS3

javascript - 如何使用 jQuery 单独引用动态生成的 Bootstrap 面板

html - 未对齐的 2 行 2 列 li 标签内容

javascript - 术语执行上下文和范围之间有区别吗?

terminology - 什么是 "Commodity Software"?

PHP 无法从 HTML 表单上传文件