Pseudo-Classes

  • Pseudo classes are automatically applied based on certain conditions
  • :hover applies when an item is being hovered
  • :focus applies to inputs when you are using them
  • :visited applies to links that have been visited
  • Pseudo classes behave like classes for specificity
  • https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes
a:visited {
    color: green; /* Visited links shall henceforth be green */
}

19 / 22