Pseudo Class

A CSS pseudo-class is used to specify the special state of an element. Syntax A CSS pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s). 8. :first-child pseudo-class The :first-child pseudo-class matches when the element E is the first child of the parent element. Syntax E: first-child {...} 9. link pseudo class A link has five states in CSS which have the below corresponding pseudo-classes. :link - for links that have not yet been visited :visited - for links that have been visited :hover - for a link with the mouse pointer over it :active - for a link when it is activated (when the mouse pointer is clicked on it) :focus- for a link that has the focus (use key to activate it)
Related Tutorial
Follow Us #