readonly field code example Example: using value attribute in input tag makes it read only use defaultValue tag