开发者社区> 问答> 正文

HTML中布尔型属性的赋值问题

在HTML Standard里面有这么一句话

If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace.

这句话的后半句是什么意思? 除了给这个属性设置空值,还有一个是什么值?

展开
收起
杨冬芳 2016-06-17 14:36:19 1978 0
1 条回答
写回答
取消 提交回答
  • IT从业

    i.e. either disabled or disabled="disabled"

    2019-07-17 19:42:37
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
《零基础HTML入门教程》 立即下载
天猫 HTML5 互动技术实践 立即下载
天猫HTML5互动技术实践 立即下载