Examveda
Examveda

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?

A. :valid

B. :target

C. :read-only

D. :required

Answer: Option C

Solution(By Examveda Team)

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

This Question Belongs to CSS >> CSS3 Fundamentals

Join The Discussion

Related Questions on CSS3 Fundamentals