
LPI Web Development Essentials
Domain 3Objective 2
033.2 CSS Selectors and Style Application (weight: 3) WEB-DEVELOPMENT-ESSENTIALS Practice Questions (Page 7)
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 31–35
- 31
A developer is building a form and wants to style a submit button differently when it is disabled and when it is hovered. They have the following rules: button:disabled { opacity: 0.5; } button:hover { opacity: 1; }. When the button is disabled and hovered, what will the opacity be?
Select an answer first - 32
A web application has input fields that can be either text inputs or checkboxes. The developer wants to apply a red border only to text inputs that have a 'required' attribute, regardless of whether the attribute has a value. Which CSS selector accomplishes this?
Select an answer first - 33
A developer notices that a <p> element inside a <div> is not inheriting the font-size set on the <div>. The <div> has font-size: 20px;. The <p> has a class 'text' with the rule .text { font-size: initial; }. What font-size will the <p> have?
Select an answer first - 34
A designer wants to change the background color of a button when the user hovers over it, but only if the button is not disabled. The button is marked with a class 'btn'. Which CSS rule should be used?
Select an answer first - 35
In a table, the developer wants to highlight every third row starting from the first row (i.e., rows 1, 4, 7, ...). The rows are all <tr> elements inside a <tbody>. Which selector should be used?
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.