CSS Introduction
- Which of the following selector is used to selects the element that is the root of the document?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
:root {background-color: blue;}
/* sets the background color to blue for the root element */
- 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?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
input:read-only {color: gray;}
/* put all read only fields in gray */