Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

WGU Web-Development-Applications Dumps 2026 with Free Practice Questions and Answers

14 original practice questions for the WGU Web Development Applications (KVO1) exam, each with an answer and explanation.

Exam topics: HTML5, CSS3, And JavaScript Foundations, Validation, Testing, And Form Development, Creating Adaptive Web Documents And Pages and Responsive Web Design (RWD) For Browsers And Apps.

Formats: single answer, dropdown, multiple answers, drag and drop and order list. A new question is added every 15 days.

Web-Development-Applications Practice Set Details

Vendor
WGU
Exam Code
Web-Development-Applications
Questions On This Page
14
Exam Topics Covered
4 of 4
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
136
Certification
WGU Courses and Certifications
14 questions

WGU Web-Development-Applications Exam Questions and Answers by Topic

Validation, Testing, and Form Development

4 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A membership form must reject an empty email field and require a value that matches the browser's email input validation before the user submits. The team also needs the browser's built-in validation message and does not want JavaScript to replace native validation. Which markup is the best fit?

Correct answer: C

An email input supplies the browser's email-format constraint, and required prevents an empty submission; a programmatically associated label supplies the control's accessible name. A placeholder is not a required constraint or a label. The novalidate attribute disables native constraint validation, and aria-required communicates state to assistive technology but does not itself enforce requiredness. A text input does not infer email syntax from its value.

Question 2

Added

Single Answer

A nonprofit's registration form has been reviewed visually, but a release gate requires the team to catch invalid HTML structure and verify that the page remains usable at mobile widths. The team has no budget for a paid test platform, can deploy to a public staging URL, and needs evidence that issues were checked rather than merely assuming the page is correct because it renders. Which validation plan is the best next step?

Correct answer: C

The Nu Html Checker can report markup conformance problems, while browser developer tools can inspect layout at representative viewport widths without paid tooling. Rendering alone does not prove valid markup, and desktop-only inspection misses responsive defects. Lighthouse can identify many quality issues but is not a complete HTML conformance checker and cannot certify every breakpoint. Regular expressions cannot reliably parse HTML structure, and disabling mobile emulation removes a needed test condition.

Question 3

Added

Dropdown

A checkout form must provide immediate feedback when a required postal code is missing, while retaining the browser's constraint-validation behavior for submission. The developer uses an input event listener and wants to show a custom inline message only when the control is invalid, then clear it when the value becomes valid. Complete the logic using the DOM validity API.

Choose the correct value for each blank.

if (postalCode.) { message.textContent = postalCode.; } else { message.textContent = ""; }
Correct answer:

if (postalCode.validity.valid) { message.textContent = postalCode.validationMessage; } else { message.textContent = ""; }

The intended condition is the validity state: the message is shown when validity.valid is false and cleared when the control is valid. validationMessage provides the browser's current constraint-validation message for the control. checkValidity() is a method whose true result means the control is valid, so it would require a negation in this exact statement; valueMissing is a validity-state flag rather than the complete validity result, and the other property names do not provide the required message string.

Question 4

Added

Single Answer

An event registration form uses a required email field and a required consent checkbox. A new inline message appears after submit, but assistive technology does not announce it reliably, and focus remains on the submit button when validation fails. The team wants to retain native required-field validation and provide a clear route to the first invalid control without creating a custom validation framework. Which change is best?

Correct answer: C

Keeping native constraints preserves required-field validation, while focusing the first invalid control gives users a direct correction point. Associating the inline message through aria-describedby makes its explanation available when the control is encountered. Removing required does not enforce the constraints, and aria-invalid should reflect actual state rather than be set indiscriminately. Focusing the heading and relying on visual styling or placeholders leaves the error disconnected from the control; novalidate disables native validation.

Creating Adaptive Web Documents and Pages

3 practice questions on this topicWhat this topic covers

Question 5

Added

Single Answer

A regional news site has a dense desktop article layout with a persistent right-hand related-stories rail. On 1280-pixel-wide screens, the rail improves discovery, but at 900 pixels the article becomes uncomfortably narrow. The design team wants to preserve the desktop arrangement where it fits and remove the rail from the reading flow when it does not. The page already uses a centered container with a maximum width, and the team cannot redesign the article markup before launch. Which CSS change best addresses the constraint while keeping the layout usable at intermediate widths?

Correct answer: A

A flexible two-column grid lets the article and rail use available space, while a breakpoint can remove the rail from the constrained reading layout without requiring markup changes. The breakpoint should be selected where the content no longer fits comfortably, rather than tied to a named device. Fixed columns preserve the original problem, smaller type compromises readability, and scaling shrinks every control and text element rather than adapting the layout.

Question 6

Added

Single Answer

A public library is rebuilding its events pages for phones, tablets, and desktops. The current page uses a desktop-width canvas that mobile browsers shrink to fit, making text difficult to read and touch targets too small. The design must use the available CSS breakpoints rather than render a miniature desktop page, and the team wants the viewport width to correspond to the device's CSS pixel width. Which document change is the best first step?

Correct answer: A

Setting width=device-width establishes a layout viewport aligned with the device's CSS pixel width, and initial-scale=1 avoids an initial zoomed-out desktop canvas. This allows responsive CSS to operate at expected widths. A fixed 980-pixel viewport recreates the miniature-page behavior, while disabling zoom or limiting the maximum scale can prevent users from enlarging content and does not correct the layout viewport.

Question 7

Added

Single Answer

A product catalog must show product cards in a fluid grid. The number of columns should change automatically as space becomes available, without maintaining separate breakpoints for common phone and tablet widths. Each card must remain at least 15rem wide, and any remaining space should be distributed evenly among the cards. The implementation must use CSS Grid and retain a single card element per product. Which grid declaration best satisfies these requirements?

Correct answer: D

The auto-fit repeat combined with minmax(15rem, 1fr) creates as many columns as fit while enforcing a minimum card width and distributing extra space. A fixed four-column grid does not adapt its column count, auto-fill with a fixed track leaves unused empty tracks and does not flex cards to fill the row, and the three-track declaration hard-codes an unrelated page structure.

HTML5, CSS3, and JavaScript Foundations

4 practice questions on this topicWhat this topic covers

Question 8

Added

Multiple Answers

A small retailer is replacing a hand-built product page with semantic HTML. The page contains a site-wide navigation area, a standalone product description with a heading, an image that conveys the product's appearance, and a price that changes when a size is selected. The team requires meaningful document structure and an accessible name for the image, but it does not want to use elements solely for their default visual styling. Which two implementation choices best meet the requirements? (Choose two.)

Correct answer: B, D

A nav element identifies a major navigation block, and article is appropriate for a self-contained product description. Concise alt text gives the informative product image a text alternative. A section is not a generic styling wrapper and normally needs a thematic heading; placeholder applies to form controls, not image names; and footer semantics depend on the content's relationship to its section, not simply its visual position.

Question 9

Added

Single Answer

A booking page updates the displayed total whenever a visitor changes the number of guests. The calculation is implemented in JavaScript and should run only after the guest-count control exists in the parsed document. The team wants the script to remain in the document head for shared page templates, preserve normal HTML parsing, and avoid adding an inline event handler. Which approach is best?

Correct answer: A

A deferred classic script downloads without blocking parsing and executes after the document has been parsed, so the guest-count control is available when the script runs. Registering a change listener keeps behavior in JavaScript rather than inline markup. A plain head script can execute before the control exists, async does not guarantee execution after parsing, and an onload attribute is not the appropriate event or separation of concerns for this interaction.

Question 10

Added

Dropdown

A design system has a card component that should use a custom property defined on the root element and fall back to a fixed neutral color if that property is unavailable. The CSS must preserve ordinary inheritance and use the CSS custom-property fallback mechanism rather than duplicate theme declarations. Complete the declaration by selecting the correct value for each blank.

Choose the correct value for each blank.

color: var(, );
Correct answer:

color: var(--card-text, #333);

The var() function takes the custom property name as its first argument and an optional fallback value as its second, so var(--card-text, #333) uses the defined theme value when present and the neutral color otherwise. A dollar-prefixed name is not CSS custom-property syntax, an unprefixed identifier is not a custom property, and nesting var() as the property-name argument is invalid. The other fallback values do not provide the specified fixed neutral color.

Question 11

Added

Multiple Answers

An account settings page includes a form that submits with the browser's native form behavior. A developer is adding JavaScript to provide an inline confirmation before submission. The code must work when the user activates the submit button or presses Enter in a field, must prevent submission only when the user cancels, and must not depend on a particular button being clicked. Which two changes satisfy these requirements? (Choose two.)

Correct answer: D, E

The form's submit event covers submission through the button and keyboard activation, so the handler belongs on the form. Calling preventDefault() only when the user declines preserves normal submission when confirmation is accepted. A button-only click listener misses Enter-based submissions; returning false from an addEventListener callback does not cancel the form submission; and suppressing keydown propagation neither implements confirmation nor reliably controls submission.

Responsive Web Design (RWD) for Browsers and Apps

3 practice questions on this topicWhat this topic covers

Question 12

Added

Single Answer

A financial dashboard must support narrow mobile screens and wide desktop windows. Its CSS currently uses width: 100vw for the main panel, which introduces a horizontal scrollbar on desktop when the browser has a vertical scrollbar. The panel should fill its containing block, while a separate hero section may intentionally span the viewport. The team wants a standards-based correction that preserves the hero's viewport behavior and does not hide overflow globally. What is the best change for the main panel?

Correct answer: A

A percentage width is calculated against the containing block and avoids the common mismatch where vw includes the viewport area occupied by a scrollbar. The hero can retain its intentional viewport-based sizing independently. Hiding root overflow masks possible content loss, svw concerns small viewport sizing rather than the containing-block requirement, and fixed positioning removes the panel from normal document flow.

Question 13

Added

Order List

A travel company must adapt a booking form that is too wide on phones while preserving the desktop layout. The existing CSS has an unverified breakpoint and several form controls overflow their panel. The team has a staging URL, browser developer tools, and no time to change the form's business logic. Establish the breakpoint from content fit and verify the result before release. Arrange the steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Choose a breakpoint at the width where the current composition stops fitting comfortably.
  2. Implement the narrow-screen layout rules and constrain controls to their container.
  3. Retest just below and above the breakpoint, then check keyboard and touch usability.
  4. Inspect the form at representative viewport widths and identify the first width where content fails.
Correct answer:
  1. Inspect the form at representative viewport widths and identify the first width where content fails.
  2. Choose a breakpoint at the width where the current composition stops fitting comfortably.
  3. Implement the narrow-screen layout rules and constrain controls to their container.
  4. Retest just below and above the breakpoint, then check keyboard and touch usability.

The breakpoint should be based on the actual content failure, not a device label. First inspect the layout across widths, then place the transition where the composition ceases to work. Implement the narrow layout after selecting that threshold, and finally verify both sides of the transition plus interaction usability. Coding a breakpoint before observing fit risks preserving the wrong threshold; testing before the changes cannot validate the final implementation.

Question 14

Added

Drag And Drop

A web application has a fluid content area, a navigation pattern that changes on compact screens, and a decorative image whose crop must preserve a focal point without changing the image file. Match each design requirement to the CSS technique that directly addresses it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Switch navigation arrangement at a viewport threshold
Keep a panel within its parent while allowing it to shrink
Crop an image while maintaining its box dimensions
Prevent a long URL from forcing a grid track wider
min-width: 0 on the grid child
object-fit: cover with object-position
width: 100%; max-width: 72rem;
A media query with a max-width condition
Correct answer:
  • Keep a panel within its parent while allowing it to shrink → width: 100%; max-width: 72rem;
  • Switch navigation arrangement at a viewport threshold → A media query with a max-width condition
  • Crop an image while maintaining its box dimensions → object-fit: cover with object-position
  • Prevent a long URL from forcing a grid track wider → min-width: 0 on the grid child

A percentage width with a maximum keeps the panel fluid but capped; a media query changes presentation at a chosen viewport threshold; object-fit and object-position control image cropping and focal placement; and min-width: 0 lets a grid item shrink below its min-content contribution. Using fixed widths would not adapt, changing HTML source would not control a CSS crop, and overflow hidden alone does not resolve an oversized grid track's sizing behavior.

More WGU Practice Questions

Get the Full WGU Web-Development-Applications Dumps as PDF and Practice Test

14 questions are free on this page and the full set has 136. It comes as a PDF and an online practice test, with 90 days of free updates.