D276 Practice Quiz #5: CSS Fundamentals UPDATED ACTUAL QUESTIONS AND
CORRECT ANSWERS
A CSS rule consists of which three (3) of the following declaration
parts? declaration block
declaration selector
declaration block
selector
Scheme
style-border
Which of the following is the definition of a CSS A CSS property followed by a colon (:) and the property value
declaration?
A CSS property followed by a colon (:) and the property
value
One or more declarations separated by semicolons (;)
The HTML elements to which the specific style rule
applies
Which of the following is the definition of a CSS selector? The HTML elements to which the specific style rule applies
The HTML elements to which the specific style rule
applies
A CSS property followed by a colon (:) and the property
value
One or more declarations separated by semicolons (;)
, Which of the following is the definition of a CSS One or more declarations separated by semicolons (;)
declaration block?
One or more declarations separated by semicolons (;)
A CSS property followed by a colon (:) and the property
value
The HTML elements to which the specific style rule
applies
True or false? It is a good practice to place each True
declaration on a separate line and to add a semicolon to
the end of each declaration block, even when a
semicolon is not required, so that adding the semicolon is
not forgotten later when adding more declarations.
True
False
Of the following, select the valid ways CSS can be embedded
implemented. external
embedded inline
external
inline
absolute link
browser default
True or false? An inline style does not use a selector. True
True
False
An inline style uses curly braces ({}). False
False
True
True or false? A website should use an external True
stylesheet to create styles that apply to all web pages.
True
False
Inline styles cannot be used with embedded stylesheets False
or external stylesheets.
False
True
True or false? CSS style declarations override the default True
browser style declarations.
True
False
CORRECT ANSWERS
A CSS rule consists of which three (3) of the following declaration
parts? declaration block
declaration selector
declaration block
selector
Scheme
style-border
Which of the following is the definition of a CSS A CSS property followed by a colon (:) and the property value
declaration?
A CSS property followed by a colon (:) and the property
value
One or more declarations separated by semicolons (;)
The HTML elements to which the specific style rule
applies
Which of the following is the definition of a CSS selector? The HTML elements to which the specific style rule applies
The HTML elements to which the specific style rule
applies
A CSS property followed by a colon (:) and the property
value
One or more declarations separated by semicolons (;)
, Which of the following is the definition of a CSS One or more declarations separated by semicolons (;)
declaration block?
One or more declarations separated by semicolons (;)
A CSS property followed by a colon (:) and the property
value
The HTML elements to which the specific style rule
applies
True or false? It is a good practice to place each True
declaration on a separate line and to add a semicolon to
the end of each declaration block, even when a
semicolon is not required, so that adding the semicolon is
not forgotten later when adding more declarations.
True
False
Of the following, select the valid ways CSS can be embedded
implemented. external
embedded inline
external
inline
absolute link
browser default
True or false? An inline style does not use a selector. True
True
False
An inline style uses curly braces ({}). False
False
True
True or false? A website should use an external True
stylesheet to create styles that apply to all web pages.
True
False
Inline styles cannot be used with embedded stylesheets False
or external stylesheets.
False
True
True or false? CSS style declarations override the default True
browser style declarations.
True
False