Question: what is the difference between pseudo class and pseudo element in css?
Answer: RESTRICTIONS: Unlike pseudo-elements, pseudo-classes can appear anywhere in selector chain. A CSS pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s). A CSS pseudo-element is a keyword added to a selector that lets you style a specific part of the selected element(s).