What is the difference between readonly=“true” & readonly=“readonly”?

后端 未结 6 971
攒了一身酷
攒了一身酷 2020-11-29 03:04

What is the difference between:


and:

<         


        
6条回答
  •  有刺的猬
    2020-11-29 04:03

    According to HTML standards, the use of

    
    

    is enough to make the input element readonly. But, XHTML standard says that the usage listed above is invalid due to attribute minimization. You can refer to the links below:

    https://www.w3.org/TR/xhtml1/diffs.html#h-4.5

    http://www.w3schools.com/tags/att_input_readonly.asp

提交回复
热议问题