Advanced CSS | Understanding CSS pseudo class and pseudo elements

VirtualAddiction on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateDesign Engineering24 min

About this video

A walkthrough of CSS pseudo-classes and pseudo-elements, covering :hover, :focus, :nth-of-type, ::before, ::after, ::first-letter and ::first-line, plus form-related selectors. It shows how to use them for decorative details and more user-friendly form styling.

What you’ll learn

  • Style elements by state with pseudo-classes such as :hover and :focus
  • Add decorative content with ::before and ::after
  • Style the first letter and first line of text with pseudo-elements