- Web design
- CSS
- selector
- here
Multiple selector specification-Introduction to CSS [CSS3 compatible]
You can specify multiple selectors by using ",".
<style>
a, a: visited, a: hover {
color: red;
}
</style>
<a href="/"> Specify multiple selectors</a>
HTML・CSS Writing 2022