Question: why hover is used in css?
Answer: The :hover pseudo-class is used to add special effect to an element when you mouse over it. a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective. a:active MUST come after a:hover in the CSS definition in order to be effective.