Home >Web Front-end >CSS Tutorial >Usage of :active pseudo-class in CSS
:active pseudo-class is used to add special styles to active elements. Possible values can be any color name in any valid format.
<html> <head> <style> a:active { color: #FF00CC; } </style> </head> <body> <a href = "">Click This Link</a> </body> </html>
The above is the detailed content of Usage of :active pseudo-class in CSS. For more information, please follow other related articles on the PHP Chinese website!