Test Series - css

Test Number 48/59

Q: Which of the following Module is not available in CSS3.
A. DOMs
B. Fonts
C. Backgrounds and Borders
D. Color
Solution: The Document Object Model (DOM) is a programming API for HTML and XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated.
Q: What module introduces the ability to modify CSS property values over time, such as position or color, to create animated layouts?
A. 3D Transforms
B. Animations
C. 2D Transforms
D. Box Model
Solution: Visit www.w3.org/TR/css3-animations to know more about it.
Q: What module defines the management of generated content for print output, including crop mark indication, header/footer handling, and much more?
A. Behavioral Extensions
B. Generated and Replaced Content
C. Generated Content for Paged Media
D. Grid Positioning
Solution: Visit www.w3.org/TR/css3-gcpm to know more about it.
Q: What module defines the handling of lists, including marker styles and some aspects of counters?
A. Line Layout
B. Lists
C. Media Queries
D. Namespaces
Solution: Visit www.w3.org/TR/css3-lists to know more about it.
Q: 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?
A. Transitions
B. Template Layout
C. Web Fonts
D. Values and Units
Solution: Visit www.w3.org/TR/css3-values to know more about it.
Q: Which of the following selector is used to selects siblings?
A. ::after
B. E ~ F
C. :checked
D. E[attr^=value].
Solution: p ~ strong {font-style: italic;}
/* sets the font style to italic on all strong tags that have a p tag as a preceding sibling */
Q: Which of the following selector is used to selects the elements that are the default among a set of similar elements?
A. ::after
B. :disabled
C. :default
D. :checked
Solution: :default {background-color: red;}
/* sets the background color of a default button like a submit to red */
Q: Which of the following selector is used to selects the element that is the first child of its parent that is of its type?
A. :nth-child(n)
B. ::first-line
C. :last-of-type
D. :first-of-type
Solution: strong:first-of-type {font-size: bigger;}
/* sets the font size bigger on the first strong tag of its parent */
Q: Which of the following selector is used to selects the element that is the nth child of its parent?
A. :nth-child(n)
B. ::first-line
C. :last-of-type
D. :first-of-type
Solution: div:nth-child(2) {background-color: red;}
/* sets the background color to red if the div is its parent’s second child */
Q: Which of the following selector is used to selects the element that is the root of the document?
A. :only-of-type
B. :target
C. :root
D. ::selection
Solution: :root {background-color: blue;}
/* sets the background color to blue for the root element */

You Have Score    /10