CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

Pseudo Elements in CSS

Pseudo Elements

 

 

Pseudo-elements are used to select specific parts of an element. There are five pseudo-elements in CSS, They are started with a double colon ("::").

  • ::first-line - the first line of the text in a selector
  • ::first-letter - the first letter of the text in a selector
  • ::selection - selects the portion of an element that is selected by a user
  • ::before - inserts some content before an element
  • ::after - inserts some content after an element

 

A list of pseudo-classes and pseudo-elements are:-

 

  1.  
  2. :active Selector in CSS
  3. ::after Selector in CSS
  4. ::before Selector in CSS
  5. :checked Selector in CSS
  6. :default Selector in CSS
  7. :disabled Selector in CSS
  8. :empty Selector in CSS
  9. :enabled Selector in CSS
  10. :first-child Selector in CSS
  11. ::first-letter Selector in CSS
  12. ::first-line Selector in CSS
  13. :first-of-type Selector in CSS
  14. :focus Selector in CSS
  15. :fullscreen Selector in CSS
  16. :hover Selector in CSS
  17. :in-range Selector in CSS
  18. :indeterminate Selector in CSS
  19. :invalid Selector in CSS
  20. :lang Selector in CSS
  21. :last-child Selector in CSS
  22. :last-of-type Selector in CSS
  23. :link Selector in CSS
  24. ::marker Selector in CSS
  25. :not Selector in CSS
  26. :nth-child() Selector in CSS
  27. :nth-last-child() Selector in CSS
  28. :nth-last-of-type() Selector in CSS
  29. :nth-of-type() Selector in CSS
  30. :only-of-type Selector in CSS
  31. :only-child Selector in CSS
  32. :optional Selector in CSS
  33. :out-of-range Selector in CSS
  34. ::placeholder Selector in CSS
  35. :read-only Selector in CSS
  36. :read-write Selector in CSS
  37. :required Selector in CSS
  38. :root Selector in CSS
  39. ::selection Selector in CSS
  40. :target Selector in CSS
  41. :valid Selector in CSS
  42. :visited Selector in CSS
  43.  

Code Explanation

All Tutorials related to CSS3

All Sections related to CSS