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-Foundation Dumps 2026 with Free Practice Questions and Answers

12 original WGU Web Development Foundations exam practice questions with answers and explanations.

Covers CSS Styling And Layout, HTML Structure And Implementation and Web Design And Development Fundamentals.

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

Web-Development-Foundation Practice Set Details

Vendor
WGU
Exam Code
Web-Development-Foundation
Questions On This Page
12
Exam Topics Covered
3 of 3
Question Types
4
Newest Question
New Question
Every 15 days
Full Question Set
77
Certification
WGU Courses and Certifications
12 questions

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

Web Design and Development Fundamentals

3 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A city services team is designing a page for residents who may use phones, tablets, or desktop computers. The content is a long set of service instructions with occasional supporting illustrations. Residents need to complete tasks quickly, and the team has limited time for custom interaction development. Which design decision is most likely to improve usability across devices while respecting the implementation constraint?

Correct answer: C

A responsive layout adapts to available viewport width, while clear headings help residents scan a long task-oriented page. Constraining images to their containers also helps prevent them from forcing horizontal scrolling. A fixed canvas requires zooming and panning, a wide table is poorly suited to flowing instructions, and hiding needed content prevents some users from completing tasks.

Question 2

Added

Multiple Answers

A community college is planning a public information site. Staff have identified several kinds of visitors, but the first prototype is becoming crowded with features requested by different departments. The launch must prioritize people completing key tasks, and the team has no budget for a large research study. Which two actions are the most useful next steps for keeping the design grounded in user needs? (Choose two.)

Correct answer: A, C

Defining audiences and their tasks gives the team a practical basis for prioritizing content and navigation. A low-cost prototype can then reveal usability problems by observing representative users, without requiring a large formal study. Implementing every departmental request first increases scope before priorities are clear. Styling before content decisions and copying the organization chart assume internal structure matches visitor needs.

Question 3

Added

Single Answer

A travel information site displays a map and several large photographs on its landing page. Analytics show that many visitors leave before the page finishes loading on mobile connections. The team must improve perceived and actual loading performance without removing the map or photos, and it cannot introduce a paid optimization service. Which first change is the best fit?

Correct answer: C

Choosing image dimensions appropriate to their rendered size and compressing the files reduces the bytes visitors must download while retaining the visual content. CSS sizing alone does not reduce the transferred file size. Background images still require downloading and decoding, and moving essential content below the footer harms the page rather than optimizing it.

HTML Structure and Implementation

4 practice questions on this topicWhat this topic covers

Question 4

Added

Order List

A nonprofit is adding a new article page to a site that uses a shared template. The page must have valid HTML structure, display a meaningful title in the browser, and expose the article's main content as the page's primary content. The editor has supplied the article title, text, and a shared stylesheet, but the page has not yet been written. Arrange the steps in the order they should be performed.

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

  1. Add the body element and place the article within the main content landmark.
  2. Close the document structure and validate the resulting HTML.
  3. Declare the HTML document type and start the html element with its language.
  4. Add the head element with character encoding, page title, and stylesheet link.
Correct answer:
  1. Declare the HTML document type and start the html element with its language.
  2. Add the head element with character encoding, page title, and stylesheet link.
  3. Add the body element and place the article within the main content landmark.
  4. Close the document structure and validate the resulting HTML.

The document type and root element establish the document before its metadata and content are added. The head contains the title and stylesheet reference, while visible article content belongs in the body and its main landmark. Closing the structure and validating afterward helps catch errors in the completed markup. Starting with body content before establishing the document structure reverses the intended organization.

Question 5

Added

Drag And Drop

A university department is reviewing a page for semantic markup. The page contains a site-wide set of navigation links, an independently meaningful article, a self-contained related-events panel, and a short note at the bottom that applies to the whole page. Match each content role to the most appropriate HTML element.

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

Independently meaningful article
Site-wide set of navigation links
Self-contained related-events panel
Page-wide closing note
aside
footer
article
nav
Correct answer:
  • Site-wide set of navigation links → nav
  • Independently meaningful article → article
  • Self-contained related-events panel → aside
  • Page-wide closing note → footer

The nav element identifies a major block of navigation links. Article is appropriate for independently meaningful content, and aside marks supporting content related to the surrounding material, such as a related-events panel. A footer represents closing information for its relevant page or section. Using generic div elements would not communicate these distinct roles to browsers and assistive technologies.

Question 6

Added

Single Answer

A clinic's appointment page contains several fields, including a required email address. Users must be able to identify each field by its visible text, and clicking the email label should move focus to that field. The developers need to preserve native browser form behavior and avoid relying on placeholder text as the only label. Which markup approach best meets the requirements?

Correct answer: B

Wrapping the control in a label associates the visible descriptive text with the input, so activating the label focuses the control without requiring a separate for/id pair. Placeholder text is not a reliable replacement for a persistent label. A mismatched for value creates no association, and a paragraph remains unassociated even when the input is required.

Question 7

Added

Single Answer

An online magazine is converting its navigation labels into links. A link labeled "Subscribe" should open the magazine's subscription page within the same browser tab. The destination is a normal page on the same site, and the developers want the browser's standard link behavior without scripting. Which markup is the most appropriate?

Correct answer: D

An anchor with an href is the native HTML mechanism for navigating to a resource and works with standard browser link behavior. A button is intended for actions rather than ordinary navigation, while a scripted span requires recreating keyboard and navigation behavior. An anchor without href is not a functional hyperlink by default.

CSS Styling and Layout

5 practice questions on this topicWhat this topic covers

Question 8

Added

Single Answer

A regional arts organization is rebuilding its event site. Most pages use the same typography and color palette, but a small set of pages needs a distinct high-contrast theme. Developers currently repeat declarations in every page, and updates have become inconsistent. The site must remain easy to maintain, and the team cannot add a CSS preprocessor or JavaScript theming framework. Which approach best centralizes shared styling while allowing the exceptional pages to override it predictably?

Correct answer: B

A shared external stylesheet keeps common rules in one maintained location, while a page-level theme class provides a deliberate selector for the limited overrides. The cascade resolves those overrides when their specificity and order are appropriate. Inline styles make shared updates repetitive, embedded styles still duplicate page-specific maintenance, and universal selectors combined with widespread !important make future changes harder to control.

Question 9

Added

Multiple Answers

A public library's catalog must remain usable at narrow mobile widths and when patrons increase text size. The current layout uses fixed pixel widths for the main column and sidebar, causing horizontal scrolling on phones. The team wants the sidebar beside the results on wide screens and below them on narrow screens; no JavaScript layout logic is permitted. Which two CSS changes best meet these requirements? (Choose two.)

Correct answer: C, D

Flexible Grid or Flexbox sizing avoids tying content to a single viewport width, and a media query can intentionally stack the columns when space is limited. Fixed widths continue to overflow, while hiding horizontal overflow merely conceals inaccessible content. Absolute positioning removes the columns from normal flow and makes responsive text expansion especially fragile.

Question 10

Added

Single Answer

A small retailer adds a promotional badge to product cards. The badge should sit over the upper-right corner of each card, while the card's title and price continue to occupy their normal positions in the layout. Cards have varying content heights, and the badge must not be positioned relative to the browser window. Which CSS positioning strategy best satisfies the design?

Correct answer: C

A relatively positioned card establishes the containing block for its absolutely positioned badge without removing the card itself from normal document flow. Fixed positioning instead anchors an element to the viewport, which is not the requested relationship. Making the card absolute can remove it from normal flow, and a static badge cannot be offset into the card corner using inset positioning.

Question 11

Added

Single Answer

A museum's website is being refreshed to meet accessibility requirements. Its body text currently uses a pale gray foreground on a white background. A proposed revision uses dark text for paragraphs but leaves links in a light blue that is difficult to distinguish from the background. The team wants to retain the existing page structure and make the smallest reliable styling change. Which action best addresses the problem?

Correct answer: C

Changing the link foreground to a color with adequate contrast against its actual background directly addresses the stated visibility problem. A larger font does not correct insufficient color contrast, and a shadow is not a dependable substitute for readable foreground and background colors. A transparent background does not guarantee a suitable contrast relationship because the rendered background may vary.

Question 12

Added

Single Answer

An online magazine uses a stylesheet rule that colors every h2 heading blue. A special landing-page heading also has a class that sets its color to orange, but the heading remains blue even though the class rule appears later in the stylesheet. The developers want to preserve the general heading rule and correct only the landing-page styling. Which change is the best next step?

Correct answer: A

When the competing declarations have the same origin and importance, selector specificity is considered before source order. A class selector is more specific than an element selector, so a later class rule should already win unless another declaration has greater specificity or importance. Increasing the landing-page selector's specificity addresses that likely conflict while retaining the shared rule. Moving the general rule later does not beat a more specific selector, and !important worsens override control.

More WGU Practice Questions

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

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