(Selectors, Appearance, & Files) Flashcards
7 cards from real CSS practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 (Selectors, Appearance, & Files) flashcards as text
Which file extension is used for an external CSS stylesheet?
Answer: .css
External stylesheets use the .css file extension.
What does the selector ".btn.primary" match?
Answer: Elements having both btn and primary classes
Chained class selectors with no space match elements carrying all listed classes.
Which pseudo-class styles a link that the user has already visited?
Answer: :visited
The :visited pseudo-class targets links the user has previously visited.
How do you add a CSS comment?
Answer: /* comment */
CSS comments are wrapped in slash-asterisk delimiters.
Which property makes text bold?
Answer: font-weight
font-weight with a value like bold or 700 controls boldness.
What does the adjacent sibling selector "h2 + p" match?
Answer: A immediately following an
The + combinator selects the element directly after the first one at the same level.
Which property adds an underline to text?
Answer: text-decoration
text-decoration: underline draws a line under the text.