Multiple selector specification-Introduction to CSS [CSS3 compatible]

You can specify multiple selectors by using ",".

Specify multiple selectors

<style>
  a, a: visited, a: hover {
    color: red;
  }
</style>

<a href="/"> Specify multiple selectors</a>

Associated Information