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