CSS Attribute Selectors
- Which of the following selector selects the elements that are currently enabled?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
:enabled
- Which of the following selector selects the element that is the first child of its parent that is of its type?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Example: strong:first-of-type {font-size:bigger;}
- Which of the following selector selects elements that do not match the selector s?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Example: *:not(h1) {color: black;}
- Which of the following selector selects an element if it’s the only child of its parent?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Example: h1:only-child {color: blue;}
- Which of the following selector selects the element that is the target of a referring URI?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Example: :target{color:red;}