What is the difference between:
and:
<
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