WGU C777 OA EXAM / WEB DEVELOPMENT APPLICATION
EXAM2026-2027 BANK QUESTIONS WITH DETAILED
VERIFIED ANSWERS EXAM QUESTIONS WILL COME
FROM HERE (100% CORRECT ANSWERS A+ GRADED
1. Which HTML5 element is used to define navigation links?
A) <nav>
B) <navigation>
C) <menu>
D) <links>
Answer: A) <nav>
Explanation: The <nav> element is a semantic HTML5 element
specifically designed to contain major navigation blocks for a website,
such as primary menus or tables of contents.
2. What is the correct way to apply an external CSS stylesheet to an
HTML document?
A) <style src="styles.css">
B) <link rel="stylesheet" href="styles.css">
C) <css href="styles.css">
D) <import url="styles.css">
,2|Page
Answer: B) <link rel="stylesheet" href="styles.css">
Explanation: The <link> element with the rel attribute set to
"stylesheet" and href pointing to the CSS file is the standard method for
linking external stylesheets in the document head.
3. Which CSS property controls the space between an element's border
and its content?
A) margin
B) padding
C) border-spacing
D) outline
Answer: B) padding
Explanation: Padding is the transparent space inside an element,
between the content area and the border. Margin controls space
outside the border.
4. In JavaScript, what does the "===" operator check?
A) Assignment
B) Equality of value only
C) Equality of value and type
D) Reference equality
Answer: C) Equality of value and type
,3|Page
Explanation: The strict equality operator compares both the value and
the data type of two operands without performing type coercion,
unlike the "==" operator.
5. What does the CSS box model consist of, from innermost to
outermost?
A) Margin, border, padding, content
B) Content, padding, border, margin
C) Content, margin, padding, border
D) Padding, content, border, margin
Answer: B) Content, padding, border, margin
Explanation: The box model describes the rectangular boxes generated
for elements. The content area is surrounded by padding, then the
border, and finally the outermost margin.
6. Which JavaScript method selects an element by its ID attribute?
A) document.querySelector('.id')
B) document.getElementById('id')
C) document.getElement('id')
D) document.select('#id')
Answer: B) document.getElementById('id')
Explanation: getElementById is a DOM method that returns a reference
to the element with the specified unique ID attribute value.
, 4|Page
7. What is the primary function of the CSS z-index property?
A) To set the zoom level of an element
B) To control the stacking order of positioned elements
C) To adjust the opacity of an element
D) To define the depth of a 3D transform
Answer: B) To control the stacking order of positioned elements
Explanation: The z-index property specifies the stack level of positioned
elements (those with position other than static). Higher values are
rendered in front of lower values.
8. Which HTML input type is used for email addresses and provides
built-in validation?
A) text
B) email
C) string
D) search
Answer: B) email
Explanation: The input type="email" creates a field that automatically
validates the entered text conforms to a standard email format before
form submission in supporting browsers.
9. What is the correct JavaScript syntax to change the content of a
paragraph with the id "demo"?
A) document.getElement("p").innerHTML = "New text";