
LPI Web Development Essentials
Domain 3Objective 2
033.2 CSS Selectors and Style Application (weight: 3) WEB-DEVELOPMENT-ESSENTIALS Practice Questions (Page 9)
Part of the 033 CSS Content Styling domain, which makes up ~25% of our current practice bank. Linux Professional Institute does not publish an official question count, but from its 60-minute exam (~25–40 total, ~6–10 in this domain), expect 2–3 from this objective — we provide 55 practice questions to prepare you well beyond it. (estimate)
55questions here
11free pages
10concepts
Questions 41–45
- 41
A developer is styling a product list where each item has an <img> tag. Some images have an alt attribute, others do not. The requirement is to add a red border only to images that have an alt attribute, and the rule must override a generic img border rule defined earlier. Which selector should be used?
Select an answer first - 42
A developer wants to change the color of a button when the user presses it (active state) but not when it is merely hovered. Which pseudo-class should be used?
Select an answer first - 43
A developer wants to add a quotation mark before and after every blockquote element without changing the HTML. Which CSS rule correctly uses pseudo-elements?
Select an answer first - 44
A developer is debugging a CSS issue where an element's color is not what they expect. They have the following rules: #main p { color: red; } .content p { color: blue; } .content p:first-child { color: green; } The element is a <p> that is the first child of a div with class 'content' and id 'main'. Which color is applied?
Select an answer first - 45
A developer notices that a paragraph inside a div is not inheriting the color from the body as expected. The body has color: #333; and the div has color: initial;. What color will the paragraph have?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Linux Professional Institute. “WEB-DEVELOPMENT-ESSENTIALS” is a trademark of its owner, used for identification only.