Exam 98-383: Introduction to Programming Using HTML and CSS Practice Test
Exam 98-383: Introduction to Programming Using HTML and CSS covers the markup and styling used to create structured web pages. The available practice questions include semantic HTML elements, form controls, document mode, CSS selectors, box spacing, positioning, flexbox alignment, backgrounds, and outlines. These concepts help you read and write page code that controls both content structure and visual presentation.
Exam overview
About the Exam 98-383: Introduction to Programming Using HTML and CSS Exam
HTML work involves choosing elements that convey the role of content, such as associating a caption with a figure or providing selectable options in a form. Understanding document structure and standards mode helps explain how browsers interpret markup. CSS work requires distinguishing selectors by scope, including selectors that match only direct children, and knowing how properties affect layout and appearance. The question topics also exercise the box model, where padding separates content from borders, and positioning, where relative offsets do not normally remove an element from document flow. Flexbox questions call for identifying the property that controls alignment along the main axis. Background-repeat and outline behavior test whether a declaration changes painting, spacing, or layout. Together, these skills support practical tasks such as styling page components, aligning interface content, and diagnosing why an element appears differently than expected.
Sample Practice Questions
Review a selection from this exam's published US Practice Tests practice bank.
Which HTML element is used to provide a selectable choice in a drop-down control?
Show answer
Correct answer: AAn <option> element defines an individual choice, commonly inside a <select> element. The <select> element creates the control that contains the choices.
Which CSS property sets the horizontal alignment of inline content, such as text, within a block container?
Show answer
Correct answer: B`text-align` controls the horizontal alignment of inline-level content inside a block container, with common values including `left`, `center`, and `right`.
Which CSS declaration prevents an element's background image from tiling when the image is smaller than the element?
Show answer
Correct answer: A`background-repeat: no-repeat` displays the background image once rather than repeating it across the element.
Which HTML element provides a caption for a `<figure>` element?
Show answer
Correct answer: BThe `<figcaption>` element supplies a caption or legend for its parent `<figure>`, such as a description of an illustration or diagram.
In CSS, which property sets the space between an element's content and its border?
Show answer
Correct answer: BPadding is the space inside an element, between its content and border. Margin is outside the border; gap controls spacing between items in certain layout contexts.
Which declaration makes an HTML document use the standards-based parsing mode in modern browsers?
Show answer
Correct answer: AThe HTML5 doctype declaration, `<!DOCTYPE html>`, tells browsers to render the document in standards mode. It is placed at the beginning of the document.
An element is positioned with `position: relative`. Which statement describes how this positioning normally affects its place in document layout?
Show answer
Correct answer: ARelative positioning keeps the element's original space in normal flow. Top, right, bottom, or left offsets can visually shift it from that position.
How to use this practice test
Access is free. A practice session presents up to 20 random questions from the 50-question bank, with results shown after the session. Use the questions to check how well you can identify HTML elements, interpret CSS declarations, and distinguish layout effects from visual effects; revisit any missed concepts in a code example.
Preparation tips
- Write a small HTML form and identify the elements used for a drop-down control; add a figure and caption to practice semantic structure.
- Compare CSS selectors for descendants and direct children, then test each against a nested HTML example.
- Use a box-model diagram to distinguish content, padding, border, and outline; note which affects spacing and which does not take up layout space.
- Create a flex container with flex-direction: row and test main-axis alignment; separately compare relative positioning with normal document flow.
- Try background-repeat values on a container smaller than its image, and observe how the rendered result changes.