← All CSS Chapters
LoOPCode Home
13. Pseudo-classes & Elements
hover, focus, first-child, before/after.
Is chapter me cover hoga:
:hover :focus
:first-child
::before ::after
Use cases
1. Pseudo examples
•
:hover
— mouse upar
•
:focus
— keyboard/accessibility
•
::before / ::after
— extra decorative content
Focus / hover link
First item (bold)
Second
Third
▶ Run Code
☐
Mark complete
← Variables
Best Practices →