Add the attribute readonly to the input element.
<input type="text" value="Abc" readonly />
It isn't necessary to assign a value to the attribute. The value is ignored.
I.e. Don't write readonly="true"
or even readonly="readonly"
.
Similarly, if you write readonly="false"
the attribute value will be ignored, and the browser sees readonly.