This will make the text blue only when you hover over the a element.
if you.
These two selectors will mean that the link color is black most of the time, but blue when you hover over it.
But why did they need to create another âa classâ ?
Just seems a bit strange, if you already have âa classâ , what is the reason for not putting a simple âhoverâŚâ in there? Why do you need another class altogether just for that?
Just a little vocabulary thing - youâre creating selectors.
Very often when youâre using CSS there will be overlap in your selectors. You want one rule that targets âall linksâ and applies a style to them. You also want a rule that finds âlinks that users are currently hovering overâ and applies a different style. You could hypothetically also want to target âall links that are inside the navigation menuâ and make them look different. And so on. All of those would include a as part of the selector.