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

Usage of :active pseudo-class in CSS

WBOY
WBOYforward
2023-08-26 21:29:021389browse

CSS 中 :active 伪类的用法

:active pseudo-class is used to add special styles to active elements. Possible values ​​can be any color name in any valid format.

Example

<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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete