WGU C777
Web Development Applications
Objective Assessment (OA)
Questions with Answers-Latest Update
1. Which HTML5 element is used to define the main navigation links of a web
page?
A. <nav>
B. <main>
C. <section>
D. <aside>
Answer: A
Rationale: The <nav> element is a semantic HTML5 tag specifically intended to
contain a block of primary navigation links, helping browsers and assistive
technologies identify site navigation.
2. Which doctype declaration correctly identifies a document as HTML5?
A. <!DOCTYPE HTML PUBLIC>
B. <!DOCTYPE html>
C. <!DOCTYPE html5>
D. <!DOC html>
Answer: B
Rationale: HTML5 simplified the doctype to the case-insensitive <!DOCTYPE
html>, unlike the longer public identifiers required by HTML4 and XHTML.
3. Which attribute makes an HTML input field mandatory before form
submission?
Page 1
, C777 OA Questions
A. mandatory
B. validate
C. required
D. need
Answer: C
Rationale: The required attribute is a built-in HTML5 form validation attribute
that prevents submission until the field contains a value.
4. What is the purpose of the <alt> attribute on an <img> tag?
A. To set the image alignment
B. To provide alternative text for screen readers and when the image fails to
load
C. To define the image's file size
D. To apply a CSS class
Answer: B
Rationale: The alt attribute supplies a text description used by assistive
technology and displayed if the image cannot render, which is essential for
accessibility.
5. Which semantic element best represents an independent, self-contained
piece of content such as a blog post?
A. <div>
B. <article>
C. <span>
D. <section>
Answer: B
Rationale: <article> is designed for content that could stand alone and be
distributed independently, such as a blog post, news story, or forum post.
6. Which HTML element is used to embed a scalable vector graphic directly in a
page?
A. <canvas>
B. <img>
C. <svg>
D. <figure>
Page 2
, C777 OA Questions
Answer: C
Rationale: <svg> allows vector graphics to be defined directly in the markup,
enabling scalability without quality loss and direct DOM/CSS manipulation.
7. In HTML5, which input type restricts entry to a valid email address format?
A. type='text'
B. type='email'
C. type='mail'
D. type='string'
Answer: B
Rationale: The email input type triggers built-in browser validation that checks
for a basic valid email pattern before allowing submission.
8. What does the <head> section of an HTML document typically contain?
A. Visible page content
B. Metadata, title, and links to stylesheets/scripts
C. The footer of the page
D. Only images
Answer: B
Rationale: The <head> holds non-visible information such as the document title,
character encoding, metadata, and references to CSS/JS resources.
9. Which tag is used to create a hyperlink to another page?
A. <link>
B. <a>
C. <href>
D. <nav>
Answer: B
Rationale: The <a> (anchor) element with an href attribute creates a hyperlink;
<link> is used for external resources like stylesheets, not for user-facing
hyperlinks.
10. Which HTML5 element provides native audio playback controls without
requiring a plugin?
A. <sound>
Page 3
, C777 OA Questions
B. <media>
C. <audio>
D. <track>
Answer: C
Rationale: The <audio> element natively supports playing sound files and can
display built-in browser controls when the controls attribute is added.
11. What is the correct way to add a comment in HTML?
A. // comment
B. <!-- comment -->
C. /* comment */
D. # comment
Answer: B
Rationale: HTML comments are wrapped in <!-- and --> and are ignored by the
browser when rendering the page.
12. Which attribute of the <form> element specifies where to send form data
upon submission?
A. method
B. action
C. target
D. enctype
Answer: B
Rationale: The action attribute specifies the URL that will process the
submitted form data, while method defines how the data is sent (GET or POST).
13. Which list type automatically numbers its items?
A. <ul>
B. <ol>
C. <dl>
D. <li>
Answer: B
Rationale: <ol> creates an ordered list where browsers automatically apply
sequential numbering to each <li> item.
Page 4