WGU D276 PRE-ASSESSMENT: WEB DEVELOPMENT
FOUNDATIONS (PNVO) 2026/2027 with complete solution
1. A developer needs to create a valid HTML5 document that contains a browser-
tab title and visible content in the page body. Which structure is most appropriate?
A. <html><body><title>My
Page</title><p>Welcome</p></body></html>
B. <html><head><title>My
Page</title></head><body><p>Welcome</p></body></html>
C. <head><html><title>My
Page</title></html></head><body><p>Welcome</p></body>
D. <html><title>My
Page</title><head><p>Welcome</p></head></html>
Answer: B
2. A developer wants a heading to communicate that “Web Accessibility” is the
primary heading of a page. Which element is most semantically appropriate?
A. <p>Web Accessibility</p>
B. <span>Web Accessibility</span>
C. <h1>Web Accessibility</h1>
D. <strong>Web Accessibility</strong>
Answer: C
3. A paragraph contains the sentence “Web development requires practice,” and
only the word “practice” should be emphasized as important. Which markup is
most appropriate?
A. <p>Web development requires
<strong>practice</strong>.</p>
B. <p>Web development requires <h1>practice</h1>.</p>
C. <p>Web development requires
<title>practice</title>.</p>
D. <p>Web development requires
<head>practice</head>.</p>
,Answer: A
4. A developer needs to create a hyperlink that directs users to
https://example.com. Which code correctly implements the link?
A. <link href="https://example.com">Example</link>
B. <a src="https://example.com">Example</a>
C. <a href="https://example.com">Example</a>
D. <url href="https://example.com">Example</url>
Answer: C
5. An image conveys meaningful information to users, including users who rely on
assistive technology. Which HTML attribute should provide an appropriate textual
alternative?
A. src
B. alt
C. href
D. title
Answer: B
6. A developer inserts the following code:
<img src="campus.jpg" alt="University campus building">
What is the primary purpose of the alt attribute?
A. To specify the image file's location
B. To provide alternative text describing the image
C. To determine the image's dimensions
D. To apply CSS formatting
Answer: B
7. A developer wants an ordered list in which the browser automatically displays
numbered items. Which HTML structure should be used?
A. <ul><li>HTML</li><li>CSS</li></ul>
B. <ol><li>HTML</li><li>CSS</li></ol>
,C. <list><item>HTML</item><item>CSS</item></list>
D. <dl><li>HTML</li><li>CSS</li></dl>
Answer: B
8. A webpage contains navigation links, an introductory banner, the main article,
and a footer. Which semantic HTML elements would best communicate these
structural roles?
A. <nav>, <header>, <main>, and <footer>
B. <span>, <bold>, <font>, and <center>
C. <title>, <head>, <body>, and <meta>
D. <script>, <style>, <link>, and <br>
Answer: A
9. A developer needs to create a table containing column headings and multiple
rows of data. Which element identifies a table header cell?
A. <td>
B. <tr>
C. <th>
D. <theadrow>
Answer: C
10. A form asks users to enter their email address. Which HTML control is most
appropriate when the browser should recognize the field as an email input?
A. <input type="email">
B. <input type="mailbox">
C. <email type="text">
D. <form type="email">
Answer: A
11. A form must send its submitted information to /process-registration.
Which attribute specifies the destination to which the form data is submitted?
, A. method
B. action
C. target
D. destination
Answer: B
12. A developer wants submitted form information to be transmitted using the
HTTP POST method rather than being appended to the URL. Which code is
appropriate?
A. <form action="/submit" method="post">
B. <form action="/submit" type="post">
C. <form destination="/submit" method="POSTING">
D. <form method="send" action="/submit">
Answer: A
13. Which characteristic distinguishes XML from HTML most accurately?
A. XML is primarily designed to describe and structure data, while HTML is
designed to structure and present web content.
B. XML cannot contain nested elements.
C. HTML requires every element to be created by the developer.
D. XML is used exclusively for visual styling.
Answer: A
14. Which XML document is properly formed?
A. <person><name>Alex</person></name>
B. <person><name>Alex</name></person>
C. <person><name>Alex</person>
D. <person><name>Alex</person><name>Lee</name>
Answer: B
15. An XML document contains <Student> in the opening tag and
</student> in the closing tag. Why is this invalid?
FOUNDATIONS (PNVO) 2026/2027 with complete solution
1. A developer needs to create a valid HTML5 document that contains a browser-
tab title and visible content in the page body. Which structure is most appropriate?
A. <html><body><title>My
Page</title><p>Welcome</p></body></html>
B. <html><head><title>My
Page</title></head><body><p>Welcome</p></body></html>
C. <head><html><title>My
Page</title></html></head><body><p>Welcome</p></body>
D. <html><title>My
Page</title><head><p>Welcome</p></head></html>
Answer: B
2. A developer wants a heading to communicate that “Web Accessibility” is the
primary heading of a page. Which element is most semantically appropriate?
A. <p>Web Accessibility</p>
B. <span>Web Accessibility</span>
C. <h1>Web Accessibility</h1>
D. <strong>Web Accessibility</strong>
Answer: C
3. A paragraph contains the sentence “Web development requires practice,” and
only the word “practice” should be emphasized as important. Which markup is
most appropriate?
A. <p>Web development requires
<strong>practice</strong>.</p>
B. <p>Web development requires <h1>practice</h1>.</p>
C. <p>Web development requires
<title>practice</title>.</p>
D. <p>Web development requires
<head>practice</head>.</p>
,Answer: A
4. A developer needs to create a hyperlink that directs users to
https://example.com. Which code correctly implements the link?
A. <link href="https://example.com">Example</link>
B. <a src="https://example.com">Example</a>
C. <a href="https://example.com">Example</a>
D. <url href="https://example.com">Example</url>
Answer: C
5. An image conveys meaningful information to users, including users who rely on
assistive technology. Which HTML attribute should provide an appropriate textual
alternative?
A. src
B. alt
C. href
D. title
Answer: B
6. A developer inserts the following code:
<img src="campus.jpg" alt="University campus building">
What is the primary purpose of the alt attribute?
A. To specify the image file's location
B. To provide alternative text describing the image
C. To determine the image's dimensions
D. To apply CSS formatting
Answer: B
7. A developer wants an ordered list in which the browser automatically displays
numbered items. Which HTML structure should be used?
A. <ul><li>HTML</li><li>CSS</li></ul>
B. <ol><li>HTML</li><li>CSS</li></ol>
,C. <list><item>HTML</item><item>CSS</item></list>
D. <dl><li>HTML</li><li>CSS</li></dl>
Answer: B
8. A webpage contains navigation links, an introductory banner, the main article,
and a footer. Which semantic HTML elements would best communicate these
structural roles?
A. <nav>, <header>, <main>, and <footer>
B. <span>, <bold>, <font>, and <center>
C. <title>, <head>, <body>, and <meta>
D. <script>, <style>, <link>, and <br>
Answer: A
9. A developer needs to create a table containing column headings and multiple
rows of data. Which element identifies a table header cell?
A. <td>
B. <tr>
C. <th>
D. <theadrow>
Answer: C
10. A form asks users to enter their email address. Which HTML control is most
appropriate when the browser should recognize the field as an email input?
A. <input type="email">
B. <input type="mailbox">
C. <email type="text">
D. <form type="email">
Answer: A
11. A form must send its submitted information to /process-registration.
Which attribute specifies the destination to which the form data is submitted?
, A. method
B. action
C. target
D. destination
Answer: B
12. A developer wants submitted form information to be transmitted using the
HTTP POST method rather than being appended to the URL. Which code is
appropriate?
A. <form action="/submit" method="post">
B. <form action="/submit" type="post">
C. <form destination="/submit" method="POSTING">
D. <form method="send" action="/submit">
Answer: A
13. Which characteristic distinguishes XML from HTML most accurately?
A. XML is primarily designed to describe and structure data, while HTML is
designed to structure and present web content.
B. XML cannot contain nested elements.
C. HTML requires every element to be created by the developer.
D. XML is used exclusively for visual styling.
Answer: A
14. Which XML document is properly formed?
A. <person><name>Alex</person></name>
B. <person><name>Alex</name></person>
C. <person><name>Alex</person>
D. <person><name>Alex</person><name>Lee</name>
Answer: B
15. An XML document contains <Student> in the opening tag and
</student> in the closing tag. Why is this invalid?