Loading

Quipoin Menu

Learn • Practice • Grow

css / CSS Pseudo-class
interview

Q1. What are pseudo-classes?
Pseudo-classes select elements based on state or position: :hover, :focus, :nth-child(), :first-child.

Q2. What does :hover do?
Applies styles when mouse hovers over an element.

Q3. What does :nth-child(even) do?
Selects every even-numbered child element, useful for zebra striping tables.

Q4. What is the LVHA order for links?
:link, :visited, :hover, :active - this order prevents conflicts.

Q5. What does :first-child do?
Selects element only if it's the first child of its parent.