WGU C777 Web Development
Applications – Objective Assessment
Practice Questions and Answers
2026/2027
HTML5 Fundamentals & Semantic Markup
1. What is the primary purpose of HTML in web development?
A. To style the visual appearance of a page
B. To structure and describe the content and meaning of a web document ✅
C. To execute server-side business logic
D. To manage database connections
Rationale: HTML provides semantic structure that browsers and assistive technologies
interpret. CSS handles presentation, and JavaScript handles behavior .
2. Which HTML5 element should contain hypertext menus for site navigation?
A. <article>
B. <aside>
C. <nav> ✅
D. <section>
Rationale: The <nav> element is specifically designed to contain major navigation links .
3. What is the purpose of the <datalist> element?
A. Define hidden options until a button is clicked
B. Display a read-only text field
,C. Provide autocomplete suggestions for an input field ✅
D. Create a multi-select dropdown menu
Rationale: <datalist> provides a list of predefined suggestions for an <input> element .
4. Which element represents content that is indirectly related to the main content,
such as a sidebar or pull quote?
A. <article>
B. <aside> ✅
C. <section>
D. <header>
Rationale: <aside> is for tangential content like sidebars, advertising, or related links .
5. Which element should be used for the top banner containing a logo and site
title?
A. <div class="header">
B. <header> ✅
C. <section>
D. <footer>
Rationale: The <header> element conveys semantic meaning for introductory content .
6. What does an HTML5 code validator confirm about code?
A. It contains no runtime errors
B. It works in every legacy browser
C. It complies with an established standard ✅
D. It follows all design best practices
Rationale: Validators check markup against W3C specifications .
7. Which attribute binds a <label> element to a specific <input>?
A. name
B. for ✅
,C. id
D. bind
Rationale: The for attribute matches the input's id value .
8. What is the purpose of the <output> element?
A. Display a calculated value from user input ✅
B. Create a submit button
C. Define a hidden field
D. Display a read-only field
Rationale: <output> displays calculation results or user input feedback .
9. Which attribute makes an audio file play repeatedly?
A. loop ✅
B. repeat
C. autoplay
D. continuous
Rationale: The loop attribute restarts playback when the file ends .
10. Which attribute displays an image inside a <video> element before playback
begins?
A. src
B. poster ✅
C. preview
D. thumbnail
Rationale: The poster attribute specifies a preview image .
11. What is the correct HTML5 doctype declaration?
A. <!DOCTYPE HTML5>
B. <!DOCTYPE html> ✅
Applications – Objective Assessment
Practice Questions and Answers
2026/2027
HTML5 Fundamentals & Semantic Markup
1. What is the primary purpose of HTML in web development?
A. To style the visual appearance of a page
B. To structure and describe the content and meaning of a web document ✅
C. To execute server-side business logic
D. To manage database connections
Rationale: HTML provides semantic structure that browsers and assistive technologies
interpret. CSS handles presentation, and JavaScript handles behavior .
2. Which HTML5 element should contain hypertext menus for site navigation?
A. <article>
B. <aside>
C. <nav> ✅
D. <section>
Rationale: The <nav> element is specifically designed to contain major navigation links .
3. What is the purpose of the <datalist> element?
A. Define hidden options until a button is clicked
B. Display a read-only text field
,C. Provide autocomplete suggestions for an input field ✅
D. Create a multi-select dropdown menu
Rationale: <datalist> provides a list of predefined suggestions for an <input> element .
4. Which element represents content that is indirectly related to the main content,
such as a sidebar or pull quote?
A. <article>
B. <aside> ✅
C. <section>
D. <header>
Rationale: <aside> is for tangential content like sidebars, advertising, or related links .
5. Which element should be used for the top banner containing a logo and site
title?
A. <div class="header">
B. <header> ✅
C. <section>
D. <footer>
Rationale: The <header> element conveys semantic meaning for introductory content .
6. What does an HTML5 code validator confirm about code?
A. It contains no runtime errors
B. It works in every legacy browser
C. It complies with an established standard ✅
D. It follows all design best practices
Rationale: Validators check markup against W3C specifications .
7. Which attribute binds a <label> element to a specific <input>?
A. name
B. for ✅
,C. id
D. bind
Rationale: The for attribute matches the input's id value .
8. What is the purpose of the <output> element?
A. Display a calculated value from user input ✅
B. Create a submit button
C. Define a hidden field
D. Display a read-only field
Rationale: <output> displays calculation results or user input feedback .
9. Which attribute makes an audio file play repeatedly?
A. loop ✅
B. repeat
C. autoplay
D. continuous
Rationale: The loop attribute restarts playback when the file ends .
10. Which attribute displays an image inside a <video> element before playback
begins?
A. src
B. poster ✅
C. preview
D. thumbnail
Rationale: The poster attribute specifies a preview image .
11. What is the correct HTML5 doctype declaration?
A. <!DOCTYPE HTML5>
B. <!DOCTYPE html> ✅