WGU C777 OBJECTIVE ASSESSMENT QUESTIONS
AND CORRECT ANSWERS (VERIFIED ANSWERS)
PLUS RATIONALES 2026/2027 Q&A | INSTANT
DOWNLOAD PDF
Core Domains
HTML Fundamentals and Document Structure
CSS Styling and Layout Techniques
JavaScript Fundamentals and DOM Manipulation
Responsive Web Design and Media Queries
Web Accessibility and Semantic Markup
Version Control and Development Workflow
Web Standards, Validation, and Best Practices
Debugging, Testing, and Browser Compatibility
Security Considerations in Web Development
Professional Ethics and Emerging Web Technologies
Introduction
The WGU C777 Objective Assessment evaluates foundational web development knowledge and applied
skills required for building standards-compliant, accessible, and responsive websites. This examination
assesses HTML structure, CSS styling and layout, JavaScript fundamentals, DOM manipulation, and
responsive design principles. Questions are structured in multiple-choice and scenario-based formats
emphasizing real-world application, code interpretation, debugging, and critical thinking. Candidates
must demonstrate competency in semantic markup, accessibility compliance, cross-browser
compatibility, and professional web development practices aligned with current industry standards.
SECTION ONE: QUESTIONS 1–100
Question 1
Which HTML element is used to define the root of an HTML document?
A. head
B. body
C. html
D. doctype
C. html
, RATIONALE: The html element is the root element that contains all other HTML elements, including
head and body. The doctype declaration precedes the html element and specifies the document type.
The head contains metadata, and the body contains visible content.
Question 2
Which doctype declaration is correct for HTML5?
A. <!DOCTYPE html5>
B. <!DOCTYPE HTML5>
C. <!DOCTYPE html>
D. <!DOCTYPE html PUBLIC>
C. <!DOCTYPE html>
RATIONALE: The HTML5 doctype declaration is simply <!DOCTYPE html>, which is case-insensitive. It
triggers standards mode in browsers and is backward compatible. Previous HTML versions required
lengthy public identifiers.
Question 3
Which element is used to define a hyperlink in HTML?
A. link
B. a
C. href
D. url
B. a
RATIONALE: The anchor element (a) defines hyperlinks using the href attribute to specify the
destination URL. The link element is used for external resource references in the head. href is an
attribute, not an element.
Question 4
Which attribute specifies alternative text for an image?
A. title
B. alt
C. src
D. longdesc
B. alt
RATIONALE: The alt attribute provides alternative text for images, which is essential for accessibility
and displayed when images fail to load. The title attribute provides advisory information. The src
attribute specifies the image source.
Question 5
, Which HTML element creates an ordered list?
A. ul
B. ol
C. dl
D. li
B. ol
RATIONALE: The ol element creates an ordered (numbered) list. The ul element creates an
unordered (bulleted) list. The dl element creates a description list. The li element defines individual list
items within ol or ul.
Question 6
Which CSS selector targets all elements with a specific class?
A. #classname
B. .classname
C. classname
D. *classname
B. .classname
RATIONALE: The period (.) prefix selects elements by class name. The hash (#) prefix selects by ID.
An asterisk (*) selects all elements. Class selectors can be applied to multiple elements.
Question 7
Which CSS property controls the space between the content and the border of an element?
A. margin
B. padding
C. border-spacing
D. gap
B. padding
RATIONALE: Padding creates space inside the border, between the content and the border. Margin
creates space outside the border, between the element and adjacent elements. Border-spacing applies
to table cells. Gap applies to flex and grid layouts.
Question 8
Which CSS property is used to change the text color of an element?
A. background-color
B. font-color
C. color
D. text-color
AND CORRECT ANSWERS (VERIFIED ANSWERS)
PLUS RATIONALES 2026/2027 Q&A | INSTANT
DOWNLOAD PDF
Core Domains
HTML Fundamentals and Document Structure
CSS Styling and Layout Techniques
JavaScript Fundamentals and DOM Manipulation
Responsive Web Design and Media Queries
Web Accessibility and Semantic Markup
Version Control and Development Workflow
Web Standards, Validation, and Best Practices
Debugging, Testing, and Browser Compatibility
Security Considerations in Web Development
Professional Ethics and Emerging Web Technologies
Introduction
The WGU C777 Objective Assessment evaluates foundational web development knowledge and applied
skills required for building standards-compliant, accessible, and responsive websites. This examination
assesses HTML structure, CSS styling and layout, JavaScript fundamentals, DOM manipulation, and
responsive design principles. Questions are structured in multiple-choice and scenario-based formats
emphasizing real-world application, code interpretation, debugging, and critical thinking. Candidates
must demonstrate competency in semantic markup, accessibility compliance, cross-browser
compatibility, and professional web development practices aligned with current industry standards.
SECTION ONE: QUESTIONS 1–100
Question 1
Which HTML element is used to define the root of an HTML document?
A. head
B. body
C. html
D. doctype
C. html
, RATIONALE: The html element is the root element that contains all other HTML elements, including
head and body. The doctype declaration precedes the html element and specifies the document type.
The head contains metadata, and the body contains visible content.
Question 2
Which doctype declaration is correct for HTML5?
A. <!DOCTYPE html5>
B. <!DOCTYPE HTML5>
C. <!DOCTYPE html>
D. <!DOCTYPE html PUBLIC>
C. <!DOCTYPE html>
RATIONALE: The HTML5 doctype declaration is simply <!DOCTYPE html>, which is case-insensitive. It
triggers standards mode in browsers and is backward compatible. Previous HTML versions required
lengthy public identifiers.
Question 3
Which element is used to define a hyperlink in HTML?
A. link
B. a
C. href
D. url
B. a
RATIONALE: The anchor element (a) defines hyperlinks using the href attribute to specify the
destination URL. The link element is used for external resource references in the head. href is an
attribute, not an element.
Question 4
Which attribute specifies alternative text for an image?
A. title
B. alt
C. src
D. longdesc
B. alt
RATIONALE: The alt attribute provides alternative text for images, which is essential for accessibility
and displayed when images fail to load. The title attribute provides advisory information. The src
attribute specifies the image source.
Question 5
, Which HTML element creates an ordered list?
A. ul
B. ol
C. dl
D. li
B. ol
RATIONALE: The ol element creates an ordered (numbered) list. The ul element creates an
unordered (bulleted) list. The dl element creates a description list. The li element defines individual list
items within ol or ul.
Question 6
Which CSS selector targets all elements with a specific class?
A. #classname
B. .classname
C. classname
D. *classname
B. .classname
RATIONALE: The period (.) prefix selects elements by class name. The hash (#) prefix selects by ID.
An asterisk (*) selects all elements. Class selectors can be applied to multiple elements.
Question 7
Which CSS property controls the space between the content and the border of an element?
A. margin
B. padding
C. border-spacing
D. gap
B. padding
RATIONALE: Padding creates space inside the border, between the content and the border. Margin
creates space outside the border, between the element and adjacent elements. Border-spacing applies
to table cells. Gap applies to flex and grid layouts.
Question 8
Which CSS property is used to change the text color of an element?
A. background-color
B. font-color
C. color
D. text-color