WGU C777 Web Development Applications — Practice 2026/2027 Exam verified
with correct answers plus rationales
1. Which language is primarily responsible for defining the structure and content of a web
page?
A. CSS
B. HTML
C. JavaScript
D. SQL
Answer: B. HTML
Rationale: HTML (HyperText Markup Language) provides the structural foundation of a web
page by defining elements such as headings, paragraphs, links, images, forms, and sections.
2. Which HTML element represents the largest standard heading?
A. <heading>
B. <h6>
C. <h1>
D. <head>
Answer: C. <h1>
Rationale: <h1> is the highest-level heading, while <h6> is the lowest-level heading.
3. Which HTML element is used to create a hyperlink?
A. <link>
B. <a>
C. <href>
D. <url>
Answer: B. <a>
Rationale: The anchor element <a> creates hyperlinks. The href attribute specifies the
destination.
,4. Which attribute specifies the destination of an anchor element?
A. src
B. target
C. href
D. action
Answer: C. href
Rationale: The href attribute contains the URL or resource location to which the hyperlink
points.
5. Which HTML element is used to display an image?
A. <image>
B. <picture>
C. <img>
D. <src>
Answer: C. <img>
Rationale: The <img> element embeds an image into a web page. Its src attribute identifies the
image resource.
6. What is the primary purpose of the alt attribute on an image?
A. Change image dimensions
B. Provide alternative text describing the image
C. Compress the image
D. Create an animation
Answer: B. Provide alternative text describing the image
Rationale: Alternative text improves accessibility and provides meaningful information when an
image cannot be displayed.
7. Which CSS property changes the color of text?
A. font-color
B. text-color
, C. color
D. foreground
Answer: C. color
Rationale: The CSS color property specifies the foreground/text color of an element.
8. Which CSS property changes the background color of an element?
A. background-color
B. bg-color
C. color-background
D. background-style
Answer: A. background-color
Rationale: background-color sets the background color of an HTML element.
9. Which CSS property controls the space between an element's content and its border?
A. margin
B. padding
C. spacing
D. border-spacing
Answer: B. padding
Rationale: Padding is the internal space between the content and the element's border.
10. Which CSS property controls the space outside an element's border?
A. padding
B. margin
C. outline
D. gap-only
Answer: B. margin
Rationale: Margin creates space outside an element's border.
with correct answers plus rationales
1. Which language is primarily responsible for defining the structure and content of a web
page?
A. CSS
B. HTML
C. JavaScript
D. SQL
Answer: B. HTML
Rationale: HTML (HyperText Markup Language) provides the structural foundation of a web
page by defining elements such as headings, paragraphs, links, images, forms, and sections.
2. Which HTML element represents the largest standard heading?
A. <heading>
B. <h6>
C. <h1>
D. <head>
Answer: C. <h1>
Rationale: <h1> is the highest-level heading, while <h6> is the lowest-level heading.
3. Which HTML element is used to create a hyperlink?
A. <link>
B. <a>
C. <href>
D. <url>
Answer: B. <a>
Rationale: The anchor element <a> creates hyperlinks. The href attribute specifies the
destination.
,4. Which attribute specifies the destination of an anchor element?
A. src
B. target
C. href
D. action
Answer: C. href
Rationale: The href attribute contains the URL or resource location to which the hyperlink
points.
5. Which HTML element is used to display an image?
A. <image>
B. <picture>
C. <img>
D. <src>
Answer: C. <img>
Rationale: The <img> element embeds an image into a web page. Its src attribute identifies the
image resource.
6. What is the primary purpose of the alt attribute on an image?
A. Change image dimensions
B. Provide alternative text describing the image
C. Compress the image
D. Create an animation
Answer: B. Provide alternative text describing the image
Rationale: Alternative text improves accessibility and provides meaningful information when an
image cannot be displayed.
7. Which CSS property changes the color of text?
A. font-color
B. text-color
, C. color
D. foreground
Answer: C. color
Rationale: The CSS color property specifies the foreground/text color of an element.
8. Which CSS property changes the background color of an element?
A. background-color
B. bg-color
C. color-background
D. background-style
Answer: A. background-color
Rationale: background-color sets the background color of an HTML element.
9. Which CSS property controls the space between an element's content and its border?
A. margin
B. padding
C. spacing
D. border-spacing
Answer: B. padding
Rationale: Padding is the internal space between the content and the element's border.
10. Which CSS property controls the space outside an element's border?
A. padding
B. margin
C. outline
D. gap-only
Answer: B. margin
Rationale: Margin creates space outside an element's border.