Question: what is the difference between pseudo class and pseudo element?
Answer: A pseudo-class is similar to a class in HTML, but it's not specified explicitly in the markup. Some pseudo-classes are dynamic—they're applied as a result of user interaction with the document. ... A pseudo-element refers to things that are part of the document, but you just don't know it yet. For example the first letter.