Exam 70-480: Programming in HTML5 with JavaScript and CSS3 Practice Test
Exam 70-480 covers building interactive web pages with HTML5, JavaScript, and CSS3. The available practice questions touch JavaScript arrays and object properties, semantic HTML elements, form validation, and CSS selectors and display behavior. These concepts support creating structured page content, responding to user input, and controlling how elements appear in a browser.
Exam overview
About the Exam 70-480: Programming in HTML5 with JavaScript and CSS3 Exam
Web development with these technologies involves choosing semantic elements for page structure, marking up forms with appropriate input types and attributes, and using browser validation for required or email-formatted values. JavaScript skills include distinguishing reassignment from mutation, understanding `const` object behavior, and transforming arrays without altering the original data. CSS work includes writing selectors that target specific descendants, setting text color, and deciding whether to hide an element while retaining its layout space. These decisions arise when implementing navigation, primary content, form controls, and responsive interface behavior. The practice material samples these kinds of language and markup concepts; its topics describe the question bank and should not be read as a complete or official exam outline.
Sample Practice Questions
Review a selection from this exam's published US Practice Tests practice bank.
Given `const values = [4, 7, 9];`, which expression returns a new array containing each value multiplied by 2, without changing `values`?
Show answer
Correct answer: B`map` calls its callback for each array item and returns a new array of the callback results. `forEach` does not produce such an array, `filter` selects items based on truthiness, and `push` appends an item.
An input element has `type="email"` and a `required` attribute. Which built-in form behavior does this provide?
Show answer
Correct answer: ANative constraint validation checks that a required field is not empty and that an email-type value matches the browser’s email-input format rules. It cannot verify mailbox existence or deliver email.
In JavaScript, what does `const settings = { theme: "light" }; settings.theme = "dark";` do?
Show answer
Correct answer: BA const declaration prevents assigning a different value to the variable binding. It does not make an object’s properties immutable, so the existing object can be mutated.
Which HTML element is used to group a set of navigation links?
Show answer
Correct answer: AThe <nav> element represents a section of a page whose purpose is to provide navigation links, such as a site menu or table of contents.
Which CSS declaration prevents an element's content from being displayed while also removing its box from layout?
Show answer
Correct answer: C`display: none` removes the element from the layout, so it occupies no space. `visibility: hidden` and `opacity: 0` hide it visually but generally preserve its layout space.
Which CSS selector matches only `<p>` elements that are direct children of an element with the class `card`?
Show answer
Correct answer: BThe child combinator `>` matches elements that are immediate children. Therefore `.card > p` selects paragraphs directly inside an element with class `card`, unlike the descendant selector `.card p`.
Which CSS rule hides an element from visual display but preserves its space in the layout?
Show answer
Correct answer: B`visibility: hidden` makes an element invisible while retaining its layout space. By contrast, `display: none` removes the element's box from layout.
How to use this practice test
Access the practice questions for free. A session presents up to 20 randomly selected questions from the available bank, with results shown after the session. Use those results to identify which HTML semantics, JavaScript expressions, or CSS rules need closer review, then revisit the relevant concepts in your own code examples.
Preparation tips
- Trace array transformations step by step and check whether each method returns a new array or changes the original.
- Test how `const` applies to an object binding: try changing a property, then compare that with assigning a different object to the variable.
- Build a small form with `type="email"` and `required`; observe which invalid or missing values the browser rejects before submission.
- Write paired CSS examples using `display: none` and `visibility: hidden`, and compare their effects on the element’s layout space.
- Practice selecting direct child paragraphs with a class-based selector, and check the result against nested paragraphs in browser developer tools.