CSS Pseudo-Classes and Pseudo-Elements Flashcards
what is a css pseudo-class
a keyword added to selectors that specifies a special state of the element to be selected
what is a css pseudo-element
a keyword added to selectors that allow you to style certain parts of a document
what are css pseudo-classes preceded by
a colon (:)
what are css pseudo-elements preceded by
two colon (::)
how are pseudo-classes applied
as a result of user interaction with the document
css pseudo-class: link
selects any link which has not yet been visited
css pseudo-class: visited
lets you select only links that have been visited
css pseudo-class: hover
matches when the user designates an element with a pointing device, but does not necessarily activate it
css pseudo-class: active
matches when an element is being activated by the user
css pseudo-element: first-line
applies styles only to the first line of an element
css pseudo-element: first-letter
selects the first letter of the first line of a block