Be the first user to complete this post

  • 0
Add to List

pseudo elements vs pseudo classes

pseudo elements

They allow you to style certain parts of a document. For example, you can style the first letter of each paragraph.
The following video demonstrates the pseudo classes concept with a practical example in detailed!
[youtube https://www.youtube.com/watch?v=3hX5F2upeFQ]

pseudo classes

They allow you to style a dynamic state of an element over time. For example, it can be used to style an element when someone hovers over an element or gets a focus.
The following video demonstrates the pseudo elements concept with a practical example in detailed!
[youtube https://www.youtube.com/watch?v=EVc78d4v24k]



Also Read:

  1. Applying floats and clearfix to block elements
  2. Passing arguments from one function to another in javascript
  3. Using es6 modules with simple examples
  4. Managing the browser navigation history using HTML 5 pushstate and popstate
  5. es6 iterators and iterables - creating custom iterators
  6. Getting started with es6 iterators and iterables
  7. Getting started with localStorage vs sessionStorage in html5
  8. Remove the blank value from a html select option dropdown