WGU D276 WEB DEVELOPMENT FOUNDATIONS EXAM
QUESTIONS AND ANSWERS LATEST UPDATED 2025/2026 A
COMPLETE SOLUTION ALL ANSWERS 100% ACCURATE BEST
GRADED A+ FOR SUCCESS
True or false? A website should use an external stylesheet to create styles that apply to all web
pages - CORRECT ANSWERS True
Inline styles cannot be used with embedded stylesheets or external stylesheets - CORRECT
ANSWERS False
True or false? CSS style declarations override the default browser style declarations. -
CORRECT ANSWERS True
In CSS, what is inheritance? - CORRECT 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 - CORRECT ANSWERS True
Valid selector types used in CSS - CORRECT ANSWERS class, element, psuedo-class
True or false? An HTML tag class attribute specifies the classes to which the tag belongs, with
each class name separated by a comma (,). - CORRECT ANSWERS False
Of the following, select all valid pseudo-class selector examples. - CORRECT ANSWERS
:empty, :enabled, :hover, :lang
True or false? Pseudo-class selectors match elements based on user behavior or meta-
information about HTML elements - CORRECT ANSWERS True
,WGU D276 WEB DEVELOPMENT FOUNDATIONS EXAM
QUESTIONS AND ANSWERS LATEST UPDATED 2025/2026 A
COMPLETE SOLUTION ALL ANSWERS 100% ACCURATE BEST
GRADED A+ FOR SUCCESS
Choose the selector name that correctly matches the CSS used:
td {
background-color: yellow;
} - CORRECT ANSWERS element
Which selector name correctly matches the CSS selector used:
td img {
background-color: yellow;
} - CORRECT ANSWERS descendant
Select the selector name that correctly matches the CSS selector used:
.hidden {
background-color: yellow;
} - CORRECT ANSWERS class
CSS universal selector - CORRECT ANSWERS *
What is a selector called that includes a comma-delimited list of selectors at the beginning of
one CSS rule? - CORRECT ANSWERS Multiple selector
The child selector, specified by using what symbol between two selector, matches any elements
where the second element is a direct child of the first element? - CORRECT ANSWERS >
,WGU D276 WEB DEVELOPMENT FOUNDATIONS EXAM
QUESTIONS AND ANSWERS LATEST UPDATED 2025/2026 A
COMPLETE SOLUTION ALL ANSWERS 100% ACCURATE BEST
GRADED A+ FOR SUCCESS
Which CSS selector, specified using a tilde character ( ~ ) between selectors, matches the
second element if the second element occurs after the first element and both elements are
siblings? - CORRECT ANSWERS general sibling
Which CSS selector, specified by using a plus character (+) between two selectors, matches an
element that immediately follows another element, where both elements have the same
parent? - CORRECT ANSWERS adjacent sibling
Selectors known as combinators (CSS) - CORRECT ANSWERS adjacent sibling, child,
descendant, general sibling
How is an attribute selector created in CSS? - CORRECT ANSWERS Specified with an
attribute name and optional value comparison enclosed in square brackets ([ and ]).
True or false? The pseudo element selector, specified with two colon characters (::) followed by
a pseudo-element, matches parts of elements - CORRECT ANSWERS True
What does the CSS color property control? - CORRECT ANSWERS text color
Of the following, select the valid ways that we can specify color - CORRECT ANSWERS
hexadecimal color, HSL color value, RGB color value, RGBA color value
Valid float property values (CSS) - CORRECT ANSWERS left, none, right
True or false? CSS properties float and clear control how text flows around HTML elements,
making web pages look like a magazine or newspaper article where the article text wraps
around the images on a page. - CORRECT ANSWERS True
, WGU D276 WEB DEVELOPMENT FOUNDATIONS EXAM
QUESTIONS AND ANSWERS LATEST UPDATED 2025/2026 A
COMPLETE SOLUTION ALL ANSWERS 100% ACCURATE BEST
GRADED A+ FOR SUCCESS
True or false? The inline-block display property value displays the contents of the element as a
block element, but formats the element as an inline element. - CORRECT ANSWERS
True
True or false? A CSS variable is defined with two slashes (//) preceding the variable name -
CORRECT ANSWERS False
What selector must a CSS variable be declared in to have global scope? - CORRECT
ANSWERS :root
What is the proper syntax to declare a CSS variable set to black? - CORRECT ANSWERS
--section-color: black;
What is the proper syntax to use a CSS variable called --section-color? - CORRECT
ANSWERS color: var(--section-color);
An absolute size is a size that is fixed and independent of other CSS sizes - CORRECT
ANSWERS cm, in, mm, pc (pice), pt, px
The box model references which of the following components of all HTML elements? -
CORRECT ANSWERS border, content, margin, padding
Represents an Absolute length unit. - CORRECT ANSWERS px
Some web pages use a ___ ___, which uses a fixed-width container to envelop the web page
content - CORRECT ANSWERS fixed layout
QUESTIONS AND ANSWERS LATEST UPDATED 2025/2026 A
COMPLETE SOLUTION ALL ANSWERS 100% ACCURATE BEST
GRADED A+ FOR SUCCESS
True or false? A website should use an external stylesheet to create styles that apply to all web
pages - CORRECT ANSWERS True
Inline styles cannot be used with embedded stylesheets or external stylesheets - CORRECT
ANSWERS False
True or false? CSS style declarations override the default browser style declarations. -
CORRECT ANSWERS True
In CSS, what is inheritance? - CORRECT 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 - CORRECT ANSWERS True
Valid selector types used in CSS - CORRECT ANSWERS class, element, psuedo-class
True or false? An HTML tag class attribute specifies the classes to which the tag belongs, with
each class name separated by a comma (,). - CORRECT ANSWERS False
Of the following, select all valid pseudo-class selector examples. - CORRECT ANSWERS
:empty, :enabled, :hover, :lang
True or false? Pseudo-class selectors match elements based on user behavior or meta-
information about HTML elements - CORRECT ANSWERS True
,WGU D276 WEB DEVELOPMENT FOUNDATIONS EXAM
QUESTIONS AND ANSWERS LATEST UPDATED 2025/2026 A
COMPLETE SOLUTION ALL ANSWERS 100% ACCURATE BEST
GRADED A+ FOR SUCCESS
Choose the selector name that correctly matches the CSS used:
td {
background-color: yellow;
} - CORRECT ANSWERS element
Which selector name correctly matches the CSS selector used:
td img {
background-color: yellow;
} - CORRECT ANSWERS descendant
Select the selector name that correctly matches the CSS selector used:
.hidden {
background-color: yellow;
} - CORRECT ANSWERS class
CSS universal selector - CORRECT ANSWERS *
What is a selector called that includes a comma-delimited list of selectors at the beginning of
one CSS rule? - CORRECT ANSWERS Multiple selector
The child selector, specified by using what symbol between two selector, matches any elements
where the second element is a direct child of the first element? - CORRECT ANSWERS >
,WGU D276 WEB DEVELOPMENT FOUNDATIONS EXAM
QUESTIONS AND ANSWERS LATEST UPDATED 2025/2026 A
COMPLETE SOLUTION ALL ANSWERS 100% ACCURATE BEST
GRADED A+ FOR SUCCESS
Which CSS selector, specified using a tilde character ( ~ ) between selectors, matches the
second element if the second element occurs after the first element and both elements are
siblings? - CORRECT ANSWERS general sibling
Which CSS selector, specified by using a plus character (+) between two selectors, matches an
element that immediately follows another element, where both elements have the same
parent? - CORRECT ANSWERS adjacent sibling
Selectors known as combinators (CSS) - CORRECT ANSWERS adjacent sibling, child,
descendant, general sibling
How is an attribute selector created in CSS? - CORRECT ANSWERS Specified with an
attribute name and optional value comparison enclosed in square brackets ([ and ]).
True or false? The pseudo element selector, specified with two colon characters (::) followed by
a pseudo-element, matches parts of elements - CORRECT ANSWERS True
What does the CSS color property control? - CORRECT ANSWERS text color
Of the following, select the valid ways that we can specify color - CORRECT ANSWERS
hexadecimal color, HSL color value, RGB color value, RGBA color value
Valid float property values (CSS) - CORRECT ANSWERS left, none, right
True or false? CSS properties float and clear control how text flows around HTML elements,
making web pages look like a magazine or newspaper article where the article text wraps
around the images on a page. - CORRECT ANSWERS True
, WGU D276 WEB DEVELOPMENT FOUNDATIONS EXAM
QUESTIONS AND ANSWERS LATEST UPDATED 2025/2026 A
COMPLETE SOLUTION ALL ANSWERS 100% ACCURATE BEST
GRADED A+ FOR SUCCESS
True or false? The inline-block display property value displays the contents of the element as a
block element, but formats the element as an inline element. - CORRECT ANSWERS
True
True or false? A CSS variable is defined with two slashes (//) preceding the variable name -
CORRECT ANSWERS False
What selector must a CSS variable be declared in to have global scope? - CORRECT
ANSWERS :root
What is the proper syntax to declare a CSS variable set to black? - CORRECT ANSWERS
--section-color: black;
What is the proper syntax to use a CSS variable called --section-color? - CORRECT
ANSWERS color: var(--section-color);
An absolute size is a size that is fixed and independent of other CSS sizes - CORRECT
ANSWERS cm, in, mm, pc (pice), pt, px
The box model references which of the following components of all HTML elements? -
CORRECT ANSWERS border, content, margin, padding
Represents an Absolute length unit. - CORRECT ANSWERS px
Some web pages use a ___ ___, which uses a fixed-width container to envelop the web page
content - CORRECT ANSWERS fixed layout