Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 26, 2021 03:54 pm GMT

Bite-Sized CSS: Pseudo Classes vs. Pseudo Elements

Pseudo Classes

  • Starts with one colon.
  • Deals with states, such as button:hover, button:focus.
  • Selects the whole element.
  • MDN Pseudo Classes

Pseudo Elements

  • Starts with double colons, ::before, ::first-letter, etc.
  • Selects part of the element.
  • MDN Pseudo Elements

Original Link: https://dev.to/a89529294/bite-sized-css-pseudo-classes-vs-pseudo-elements-1fmf

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To