
LPI Web Development Essentials
Domain 3Objective 2
033.2 CSS Selectors and Style Application (weight: 3) WEB-DEVELOPMENT-ESSENTIALS Practice Questions (Page 6)
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 26–30
- 26
A developer wants to add a quotation mark before and after every <blockquote> element using CSS. They want to use pseudo-elements. Which CSS rule correctly adds the quotation marks?
Select an answer first - 27
A developer is troubleshooting a CSS issue where a paragraph inside a <div> is not inheriting the color set on the <div>. The <div> has color: blue;. The paragraph has a class 'special' with the rule .special { color: unset; }. What color will the paragraph text be?
Select an answer first - 28
A developer has the following CSS rules for a link: a { color: red; } .nav a { color: blue; } a.nav-link { color: green; } #main a { color: purple; }. The link has class 'nav-link' and is inside a <nav> element with id='main'. What color will the link be?
Select an answer first - 29
A developer wants to style all <span> elements that are inside a <div> but not directly inside the <div> (i.e., they may be nested deeper). They also want to exclude spans that have a class 'no-style'. Which selector should they use?
Select an answer first - 30
A developer has a list of items where the first item is a header (with class 'header') and the rest are regular items. They want to style every third regular item (i.e., items 4, 7, 10, ... in the list). The HTML is: <ul><li class='header'>Header</li><li>Item1</li><li>Item2</li><li>Item3</li>...</ul>. Which selector should they use?
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.