Test Series - css

Test Number 29/59

Q: If a particular rule should never be overridden by another rule, the ____________ indication should be used.
A. @important
B. !important!
C. !important
D. important!
Solution: If a particular rule should never be overridden by another rule, the !important indication should be used. For a rule never to be ignored, insert the indication !important just before the semicolon of the rule.
Q: Which of the following option a rule consists of?
A. Tag
B. Selector
C. Declaration
D. Both Selector and Declaration
Solution: Self-explainatory.
Q: Which of the following option a declaration consist of?
A. Tag
B. Property
C. Selector
D. Class
Solution: A declaration has two parts separated by a colon:
Property – that part before the colon
Value – that part after the colon.
Q: The ______________ is the link between the HTML document and the style. It specifies what elements are affected by the declaration.
A. Tag
B. Selector
C. Declaration
D. Class
Solution: The selector is the link between the HTML document and the style. It specifies what elements are affected by the declaration. The declaration is that part of the rule that sets forth what the effect will be.
Q: How a style sheet can be glued to the HTML document?
A. Import a style sheet using the CSS @import notation.
B. Apply the basic, document-wide style sheet for the document by using the style element
C. Link an external style sheet to the document using the link elemen
D. All of the mentioned
Solution: Self-explainatory.
Q: As a general rule, properties in CSS inherit from ___________ elements
A. child to parent
B. parent to child
C. grandparents to parents
D. none of the mentioned
Solution: Self-explainatory.
Q: CSS3 ___________ let you display smooth transitions between two or more specified colors
A. Float
B. Align
C. Gradients
D. Color
Solution: Earlier, you had to use images for these effects. However, by using CSS3 gradients you can reduce download time and bandwidth usage. In addition, elements with gradients look better when zoomed, because the gradient is generated by the browser.
Q: The ___________________ property specifies whether or not an element should be resizable by the user.
A. Outline Offset
B. Resize
C. Unit
D. None of the mentioned
Solution: Self-explainatory.
Q: The __________ specifies style sheets for a source document according to the conventions of the document language. For instance, in HTML, style sheets may be included in the document or linked externally.
A. author
B. user
C. user-agent
D. none of the mentioned
Solution: Author. The author specifies style sheets for a source document according to the conventions of the document language. For instance, in HTML, style sheets may be included in the document or linked externally.
Q: The __________ may be able to specify style information for a particular document. For example, the user may specify a file that contains a style sheet or the user agent may provide an interface that generates a user style sheet.
A. author
B. user
C. user-agent
D. none of the mentioned
Solution: User: The user may be able to specify style information for a particular document. For example, the user may specify a file that contains a style sheet or the user agent may provide an interface that generates a user style sheet (or behaves as if it did) .

You Have Score    /10