CSS Introduction
- What module expands the absolute and relative units of measure, including significant changes to support animation and aural changes with time (s and ms) and angle (deg and rad) values?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Visit www.w3.org/TR/css3-values to know more about it.
- Which of the following selector is used to selects siblings?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
p ~ strong {font-style: italic;}
- Which of the following selector is used to selects the elements that are the default among a set of similar elements?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
:default {background-color: red;}
/* sets the background color of a default button like a submit to red */
- Which of the following selector is used to 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: B
strong:first-of-type {font-size: bigger;}
/* sets the font size bigger on the first strong tag of its parent */
- Which of the following selector is used to selects the element that is the nth child of its parent?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
div:nth-child(2) {background-color: red;}
/* sets the background color to red if the div is its parent’s second child */