Home / CSE / CSS - CS :: Discussion

Discussion :: CSS - CS

  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?

  2. A.

     :valid

    B.

     :target

    C.

     :read-only

    D.

     :required

    View Answer

    Workspace

    Answer : Option C

    Explanation :

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


Be The First To Comment