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