WGU C777 Objective Assessment 2026/2027 Actual Exam |
Practice Test Bank with 350 Questions & Correct Verified
Answers | Detailed Rationales | Web Development
Applications | Pass Guaranteed - A+ Graded
Section 1: HTML5 and Semantic Markup
Q1: Which HTML5 element is used to define navigation links?
A. <nav> [CORRECT]
B. <header>
C. <footer>
D. <section>
Correct Answer: A
Rationale: The <nav> element defines a set of navigation links. Options B, C, and D are used for
header, footer, and section content respectively.
Q2: Which input type is used to create a slider control in HTML5?
A. type="range" [CORRECT]
B. type="slider"
C. type="number"
D. type="scroll"
Correct Answer: A
Rationale: type="range" displays a slider control. There is no "slider" type. number provides a
spinner control.
Q3: Which HTML5 element is designed to contain independent, self-contained content that
could be distributed or syndicated (like a blog post)?
,2
A. <section>
B. <article> [CORRECT]
C. <aside>
D. <div>
Correct Answer: B
Rationale: The <article> element specifies independent, self-contained content. <section>
defines sections in a document. <aside> defines content aside from the page content.
Q4: What is the correct HTML5 doctype declaration?
A. <!DOCTYPE html> [CORRECT]
B. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN">
C. <DOCTYPE html5>
D. <!HTML5 DOCTYPE>
Correct Answer: A
Rationale: The HTML5 doctype is simple and case-insensitive but conventionally written as
<!DOCTYPE html>.
Q5: Which attribute specifies that an input field must be filled out before submitting the form?
A. required [CORRECT]
B. mandatory
C. validate
D. placeholder
Correct Answer: A
Rationale: The required attribute is a boolean attribute that ensures the field is not empty before
submission.
,3
Q6: Which semantic element represents a caption for a <figure> element?
A. <caption>
B. <figcaption> [CORRECT]
C. <legend>
D. <title>
Correct Answer: B
Rationale: <figcaption> is used inside a <figure> to provide a caption. <caption> is for tables.
<legend> is for fieldsets.
Q7: Which HTML5 attribute provides a hint to the user of what can be entered in the field?
A. value
B. placeholder [CORRECT]
C. title
D. hint
Correct Answer: B
Rationale: The placeholder attribute displays a short hint in the input field before the user enters
a value.
Q8: Which input type validates that the user has entered a URL format?
A. type="text"
B. type="url" [CORRECT]
C. type="link"
D. type="web"
Correct Answer: B
, 4
Rationale: type="url" is used for input fields that should contain a URL address. It validates the
format upon form submission.
Q9: What is the purpose of the <mark> element?
A. To highlight text [CORRECT]
B. To delete text
C. To underline text
D. To make text bold
Correct Answer: A
Rationale: The <mark> tag defines marked text, typically highlighted for reference or notation.
Q10: Which element is used to define a title for the document?
A. <meta>
B. <head>
C. <title> [CORRECT]
D. <header>
Correct Answer: C
Rationale: The <title> element is required in all HTML documents and defines the title in the
browser tab. <header> is for content headers.
Q11: Which tag is used for a specific piece of content that is tangentially related to the main
content (like a sidebar)?
A. <article>
B. <aside> [CORRECT]
C. <section>
D. <div>