Home » CSS » CSS Introduction » Question
  1. Which of the following selector is used to select elements that are read-only. When applied to form elements, this would select fields with the readonly attribute set?
    1. :read-only
    2. :required
    3. :target
    4. :valid
    5. None of these
Correct Option: A

input:read-only {color: gray;}
/* put all read only fields in gray */



Your comments will be displayed only after manual approval.