Home > Article > Web Front-end > Usage of :hover pseudo-class in CSS

The :hover pseudo-class is used to add special styling to an element when you hover the mouse over it. Possible values can be color names in any valid format.
<html>
<head>
<style>
a:hover {
color: #FFCC00
}
</style>
</head>
<body>
<a href = "">Bring Mouse Here</a>
</body>
</html>The above is the detailed content of Usage of :hover pseudo-class in CSS. For more information, please follow other related articles on the PHP Chinese website!