WGU D276 Web Development
Foundations Exam 2025 – Actual
Exam Guide with Verified Questions
and 100% Correct Answers
1. What does HTML stand for?
A. HyperText Markup Language
B. HighText Machine Language
C. HyperTool Multi Language
D. HomeText Markup Language
Correct Answer: A. HyperText Markup Language
Explanation: HTML stands for HyperText Markup Language, a standard language used
to structure content on the web by defining elements like headings, paragraphs, and links.
2. Which HTML element defines the document's title?
A. <meta>
B. <title>
C. <head>
D. <header>
Correct Answer: B. <title>
Explanation: The <title> element, placed within the <head> section, defines the
document’s title displayed in the browser’s title bar or tab.
3. What is the purpose of CSS?
A. Defines webpage structure
B. Specifies webpage layout and appearance
C. Adds dynamic behavior
D. Manages server requests
Correct Answer: B. Specifies webpage layout and appearance
Explanation: CSS (Cascading Style Sheets) is used to control the visual presentation of a
webpage, including layout, colors, and fonts, while HTML defines structure and
JavaScript adds interactivity.
4. Which protocol is used for secure web communication?
A. HTTP
B. FTP
C. HTTPS
D. SMTP
Correct Answer: C. HTTPS
Explanation: HTTPS (HyperText Transfer Protocol Secure) uses encryption (SSL/TLS)
to secure communication between a client and server, unlike HTTP, which is
unencrypted.
, 2
5. Which HTML tag is used to create a hyperlink?
A. <link>
B. <a>
C. <href>
D. <url>
Correct Answer: B. <a>
Explanation: The <a> tag, with the href attribute, creates a hyperlink to another webpage
or resource, e.g., <a href="https://example.com">Link</a>.
6. What does the CSS property font-family specify?
A. Text size
B. Text color
C. Typeface for text
D. Text alignment
Correct Answer: C. Typeface for text
Explanation: The font-family property specifies the typeface (e.g., Arial, Times New
Roman) for an element’s text.
7. What is the role of the HTTP start line in a request?
A. Specifies the message body
B. Includes request type and path
C. Defines header fields
D. Sets content length
Correct Answer: B. Includes request type and path
Explanation: The start line in an HTTP request specifies the HTTP version, request
method (e.g., GET, POST), and the resource path (e.g., /index.html).
8. Which HTML element is used for the largest heading?
A. <h6>
B. <h1>
C. <header>
D. <h2>
Correct Answer: B. <h1>
Explanation: The <h1> tag defines the largest and most important heading, with <h2> to
<h6> representing progressively smaller headings.
9. Which CSS selector targets an element by its ID?
A. .class
B. #id
C. element
D. *
Correct Answer: B. #id
Explanation: The #id selector targets a specific element with a unique ID, e.g., #myId {
color: blue; }.
10. What does the HTTP header field Content-Type indicate?
A. Number of bytes in the message body
B. Media type of the response body
C. Date the response was generated
D. Last modification time
Correct Answer: B. Media type of the response body
, 3
Explanation: The Content-Type header specifies the media type of the response’s
message body, e.g., text/html or image/jpeg.
11. Which HTML tag creates a paragraph?
A. <p>
B. <div>
C. <span>
D. <section>
Correct Answer: A. <p>
Explanation: The <p> tag defines a paragraph, organizing text content with default
spacing.
12. What CSS property sets the background color of an element?
A. color
B. background-color
C. border-color
D. text-color
Correct Answer: B. background-color
Explanation: The background-color property sets the background color of an element,
e.g., background-color: blue;.
13. What is the purpose of the HTTP Content-Length header?
A. Specifies the media type
B. Indicates the number of bytes in the message body
C. Defines the request method
D. Sets the server’s response time
Correct Answer: B. Indicates the number of bytes in the message body
Explanation: The Content-Length header specifies the size of the message body in
bytes, helping the browser know how much data to expect.
14. Which HTML element is used to embed an image?
A. <img>
B. <picture>
C. <source>
D. <figure>
Correct Answer: A. <img>
Explanation: The <img> tag, with the src attribute, embeds an image, e.g., <img
src="image.jpg" alt="description">.
15. Which CSS unit is relative to the viewport width?
A. px
B. rem
C. vw
D. em
Correct Answer: C. vw
Explanation: The vw unit (viewport width) is relative to 1% of the browser’s viewport
width, making it responsive to screen size.
16. What does the HTTP method GET do?
A. Submits data to the server
B. Retrieves a resource from the server
C. Deletes a resource