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