D276 PRACTICE QUIZ #5: CSS FUNDAMENTALS |
WGU | QUESTIONS VERIFIED ACCURATE ANSWERS
A CSS rule consists of which three (3) of the following parts?
declaration
declaration block
selector
Scheme
style-border - Answers -declaration
declaration block
selector
Which of the following is the definition of a CSS 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 - Answers -A CSS property
followed by a colon (:) and the property value
Which of the following is the definition of a CSS selector?
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 (;) - Answers -The HTML elements
to which the specific style rule applies
Which of the following is the definition of a CSS 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 - Answers -One or more
declarations separated by semicolons (;)
True or false? It is a good practice to place each 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 - Answers -True
Of the following, select the valid ways CSS can be implemented.
embedded
external
inline
absolute link
, browser default - Answers -embedded
external
inline
True or false? An inline style does not use a selector.
True
False - Answers -True
An inline style uses curly braces ({}).
False
True - Answers -False
True or false? A website should use an external stylesheet to create styles that apply to
all web pages.
True
False - Answers -True
Inline styles cannot be used with embedded stylesheets or external stylesheets.
False
True - Answers -False
True or false? CSS style declarations override the default browser style declarations.
True
False - Answers -True
In CSS, what is inheritance?
When style declarations from a parent element cascade down and are applied to any
child elements.
Assets given to a family member when someone dies.
Characters at the beginning of a URL followed by a colon (:) or a colon and double
slashes (://).
HTML, CSS, and JavaScript - Answers -When style declarations from a parent element
cascade down and are applied to any child elements.
True or false? The !important rule may be used on a style declaration to override other
declarations and disregard specificity.
True
False - Answers -True
Of the following, select all valid selector types used in CSS.
class
descendant
WGU | QUESTIONS VERIFIED ACCURATE ANSWERS
A CSS rule consists of which three (3) of the following parts?
declaration
declaration block
selector
Scheme
style-border - Answers -declaration
declaration block
selector
Which of the following is the definition of a CSS 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 - Answers -A CSS property
followed by a colon (:) and the property value
Which of the following is the definition of a CSS selector?
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 (;) - Answers -The HTML elements
to which the specific style rule applies
Which of the following is the definition of a CSS 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 - Answers -One or more
declarations separated by semicolons (;)
True or false? It is a good practice to place each 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 - Answers -True
Of the following, select the valid ways CSS can be implemented.
embedded
external
inline
absolute link
, browser default - Answers -embedded
external
inline
True or false? An inline style does not use a selector.
True
False - Answers -True
An inline style uses curly braces ({}).
False
True - Answers -False
True or false? A website should use an external stylesheet to create styles that apply to
all web pages.
True
False - Answers -True
Inline styles cannot be used with embedded stylesheets or external stylesheets.
False
True - Answers -False
True or false? CSS style declarations override the default browser style declarations.
True
False - Answers -True
In CSS, what is inheritance?
When style declarations from a parent element cascade down and are applied to any
child elements.
Assets given to a family member when someone dies.
Characters at the beginning of a URL followed by a colon (:) or a colon and double
slashes (://).
HTML, CSS, and JavaScript - Answers -When style declarations from a parent element
cascade down and are applied to any child elements.
True or false? The !important rule may be used on a style declaration to override other
declarations and disregard specificity.
True
False - Answers -True
Of the following, select all valid selector types used in CSS.
class
descendant