WGU D276 PRE-ASSESSMENT:
WEB DEVELOPMENT
FOUNDATIONS (PNVO) 2026/2027
with complete solution
Course
WGU D276
1. Which language is primarily responsible for the structure and content of a webpage?
A. CSS
B. HTML
C. JavaScript
D. SQL
Correct Answer: B. HTML
Rationale: HTML (HyperText Markup Language) defines the structure and semantic content of
a webpage. CSS controls presentation, while JavaScript is used primarily for behavior and
interactivity.
2. Which HTML element represents the highest-level heading?
A. <heading>
B. <h6>
C. <h1>
D. <head>
Correct Answer: C. <h1>
Rationale: HTML provides headings from <h1> through <h6>, with <h1> representing the
highest-level heading. <head> is a different element containing document metadata.
3. Which HTML element creates a hyperlink?
A. <link>
B. <a>
C. <href>
D. <url>
,Correct Answer: B. <a>
Rationale: The anchor element, <a>, creates hyperlinks. The destination is normally specified
with the href attribute.
Example:
<a href="https://example.com">Visit Example</a>
4. Which attribute specifies the destination of an HTML hyperlink?
A. src
B. target
C. href
D. destination
Correct Answer: C. href
Rationale: The href attribute specifies the URL or document location to which the hyperlink
points.
5. Which HTML element is most appropriate for displaying an image?
A. <picture> only
B. <image>
C. <img>
D. <src>
Correct Answer: C. <img>
Rationale: The <img> element embeds an image into an HTML document. The src attribute
specifies the image resource.
Example:
<img src="flower.jpg" alt="Red flower">
6. What is the primary purpose of the alt attribute on an image?
A. Change the image's size
B. Provide alternative text describing the image
C. Specify the image's URL
D. Add CSS styling
, Correct Answer: B. Provide alternative text describing the image
Rationale: Alternative text provides a textual description when an image cannot be viewed and
supports accessibility, particularly for users of screen readers.
7. Which HTML element represents a paragraph?
A. <text>
B. <paragraph>
C. <p>
D. <para>
Correct Answer: C. <p>
Rationale: The <p> element represents a paragraph of text.
Example:
<p>Web development begins with understanding HTML.</p>
8. Which HTML element creates an unordered list?
A. <ol>
B. <ul>
C. <li>
D. <list>
Correct Answer: B. <ul>
Rationale: <ul> creates an unordered list, while <ol> creates an ordered list. Individual list items
are represented using <li>.
9. Which code correctly creates an ordered list?
A.
<ul>
<li>HTML</li>
<li>CSS</li>
</ul>
B.
WEB DEVELOPMENT
FOUNDATIONS (PNVO) 2026/2027
with complete solution
Course
WGU D276
1. Which language is primarily responsible for the structure and content of a webpage?
A. CSS
B. HTML
C. JavaScript
D. SQL
Correct Answer: B. HTML
Rationale: HTML (HyperText Markup Language) defines the structure and semantic content of
a webpage. CSS controls presentation, while JavaScript is used primarily for behavior and
interactivity.
2. Which HTML element represents the highest-level heading?
A. <heading>
B. <h6>
C. <h1>
D. <head>
Correct Answer: C. <h1>
Rationale: HTML provides headings from <h1> through <h6>, with <h1> representing the
highest-level heading. <head> is a different element containing document metadata.
3. Which HTML element creates a hyperlink?
A. <link>
B. <a>
C. <href>
D. <url>
,Correct Answer: B. <a>
Rationale: The anchor element, <a>, creates hyperlinks. The destination is normally specified
with the href attribute.
Example:
<a href="https://example.com">Visit Example</a>
4. Which attribute specifies the destination of an HTML hyperlink?
A. src
B. target
C. href
D. destination
Correct Answer: C. href
Rationale: The href attribute specifies the URL or document location to which the hyperlink
points.
5. Which HTML element is most appropriate for displaying an image?
A. <picture> only
B. <image>
C. <img>
D. <src>
Correct Answer: C. <img>
Rationale: The <img> element embeds an image into an HTML document. The src attribute
specifies the image resource.
Example:
<img src="flower.jpg" alt="Red flower">
6. What is the primary purpose of the alt attribute on an image?
A. Change the image's size
B. Provide alternative text describing the image
C. Specify the image's URL
D. Add CSS styling
, Correct Answer: B. Provide alternative text describing the image
Rationale: Alternative text provides a textual description when an image cannot be viewed and
supports accessibility, particularly for users of screen readers.
7. Which HTML element represents a paragraph?
A. <text>
B. <paragraph>
C. <p>
D. <para>
Correct Answer: C. <p>
Rationale: The <p> element represents a paragraph of text.
Example:
<p>Web development begins with understanding HTML.</p>
8. Which HTML element creates an unordered list?
A. <ol>
B. <ul>
C. <li>
D. <list>
Correct Answer: B. <ul>
Rationale: <ul> creates an unordered list, while <ol> creates an ordered list. Individual list items
are represented using <li>.
9. Which code correctly creates an ordered list?
A.
<ul>
<li>HTML</li>
<li>CSS</li>
</ul>
B.