The read-only attribute is a restriction attribute that we use to restrict HTML elements that its value can only be read and cannot be changed.
Output :