There are two ways to achieve the read-only effect of input: disabled and readonly.
Of course the two effects can only be read but not edited, but they are very different.
Disabled indicates that the input is invalid and its value will not be passed to any program, such as asp, php, etc.
Readonly only cannot be edited and does not affect the transfer of its value.
Disabled use:
Readonly use: