WGU D276|C777 Web Development Foundations Objective Assessment | OA V1 and V2 | Questions
and Answers | 2026 Update | 100% Correct.
SECTION 1: HTML Fundamentals (1–25)
1. What is the correct HTML5 doctype declaration?
A. <doctype html>
B. <!DOCTYPE HTML5>
C. <!DOCTYPE html>
D. <html5>
Answer: C
2. Which tag defines the main content area of a page?
A. <content>
B. <main>
C. <section>
D. <body>
Answer: B
3. Which element is used for navigation links?
A. <navigate>
B. <nav>
C. <menu>
D. <links>
Answer: B
4. Which tag creates an unordered list?
A. <ol>
B. <ul>
C. <li>
D. <list>
Answer: B
5. Which tag defines a table row?
A. <td>
B. <tr>
C. <th>
,D. <row>
Answer: B
6. Which attribute provides alternative text for images?
A. title
B. src
C. alt
D. description
Answer: C
7. What is the correct way to create a hyperlink?
A. <link href="page.html">
B. <a src="page.html">
C. <a href="page.html">
D. <href link="page.html">
Answer: C
8. Which element is semantic?
A. <div>
B. <span>
C. <header>
D. <b>
Answer: C
9. Which input type creates a date picker?
A. type="calendar"
B. type="date"
C. type="time-date"
D. type="datetime"
Answer: B
10. Which tag is used for emphasized text?
A. <i>
B. <strong>
C. <em>
,D. <bold>
Answer: C
(Questions 11–25 continue covering forms, semantic structure, tables, metadata, accessibility
roles, etc.)
SECTION 2: CSS Fundamentals (26–50)
26. Which property changes text color?
A. font-color
B. text-color
C. color
D. font-style
Answer: C
27. Which CSS selector selects by ID?
A. .id
B. #id
C. *id
D. @id
Answer: B
28. Which box model property adds space inside the border?
A. margin
B. padding
C. border
D. spacing
Answer: B
29. Which display property enables Flexbox?
A. display: block
B. display: grid
C. display: flex
D. display: inline
Answer: C
, 30. Which property controls element stacking order?
A. position
B. z-index
C. overflow
D. float
Answer: B
(Questions 31–50 include media queries, grid layout, pseudo-classes, specificity, responsive
design principles, etc.)
SECTION 3: Accessibility & Best Practices (51–65)
51. Why is the alt attribute important?
A. SEO only
B. Styling
C. Screen readers
D. Speed
Answer: C
52. Which improves accessibility for forms?
A. Placeholder text only
B. Removing labels
C. <label> element
D. Larger font only
Answer: C
53. Which color practice improves accessibility?
A. Low contrast
B. High contrast
C. Similar background/text colors
D. Transparent text
Answer: B
(Questions 54–65 include ARIA roles, keyboard navigation, semantic HTML importance, etc.)
and Answers | 2026 Update | 100% Correct.
SECTION 1: HTML Fundamentals (1–25)
1. What is the correct HTML5 doctype declaration?
A. <doctype html>
B. <!DOCTYPE HTML5>
C. <!DOCTYPE html>
D. <html5>
Answer: C
2. Which tag defines the main content area of a page?
A. <content>
B. <main>
C. <section>
D. <body>
Answer: B
3. Which element is used for navigation links?
A. <navigate>
B. <nav>
C. <menu>
D. <links>
Answer: B
4. Which tag creates an unordered list?
A. <ol>
B. <ul>
C. <li>
D. <list>
Answer: B
5. Which tag defines a table row?
A. <td>
B. <tr>
C. <th>
,D. <row>
Answer: B
6. Which attribute provides alternative text for images?
A. title
B. src
C. alt
D. description
Answer: C
7. What is the correct way to create a hyperlink?
A. <link href="page.html">
B. <a src="page.html">
C. <a href="page.html">
D. <href link="page.html">
Answer: C
8. Which element is semantic?
A. <div>
B. <span>
C. <header>
D. <b>
Answer: C
9. Which input type creates a date picker?
A. type="calendar"
B. type="date"
C. type="time-date"
D. type="datetime"
Answer: B
10. Which tag is used for emphasized text?
A. <i>
B. <strong>
C. <em>
,D. <bold>
Answer: C
(Questions 11–25 continue covering forms, semantic structure, tables, metadata, accessibility
roles, etc.)
SECTION 2: CSS Fundamentals (26–50)
26. Which property changes text color?
A. font-color
B. text-color
C. color
D. font-style
Answer: C
27. Which CSS selector selects by ID?
A. .id
B. #id
C. *id
D. @id
Answer: B
28. Which box model property adds space inside the border?
A. margin
B. padding
C. border
D. spacing
Answer: B
29. Which display property enables Flexbox?
A. display: block
B. display: grid
C. display: flex
D. display: inline
Answer: C
, 30. Which property controls element stacking order?
A. position
B. z-index
C. overflow
D. float
Answer: B
(Questions 31–50 include media queries, grid layout, pseudo-classes, specificity, responsive
design principles, etc.)
SECTION 3: Accessibility & Best Practices (51–65)
51. Why is the alt attribute important?
A. SEO only
B. Styling
C. Screen readers
D. Speed
Answer: C
52. Which improves accessibility for forms?
A. Placeholder text only
B. Removing labels
C. <label> element
D. Larger font only
Answer: C
53. Which color practice improves accessibility?
A. Low contrast
B. High contrast
C. Similar background/text colors
D. Transparent text
Answer: B
(Questions 54–65 include ARIA roles, keyboard navigation, semantic HTML importance, etc.)