HTMLCSS

CSS Pseudo-clases

Las pseudo clases, son palabras que se añaden a un elemento y especifican un especial estado del elemento, son:

:active // selecciona el elemento cuando esta activo
:checked
:default
:dir()
:disabled
:empty // elementos que no tienen hijos
:enabled
:first
:first-child // elementos que son primer hijo
:first-of-type // primer elementode ese tipo
:fullscreen
:focus // cuando el elemento esta en el foco del navegador
:hover // cuando el ratón está sobre el elemento
:indeterminate
:in-range
:invalid
:lang()
:last-child // el último hijo
:last-of-type // el último hijo de ese tipo
:left
:link // los elemento que tienen enlace
:not() // elemento que no son de un tipo; :not(p) que no son párrafo
:nth-child()
:nth-last-child()
:nth-last-of-type()
:nth-of-type()
:only-child
:only-of-type
:optional
:out-of-range
:read-only
:read-write
:required
:right
:root
:scope
:target
:valid
:visited