CSS - Pseudo-class :active



        The :active pseudo-class is used to add special effect to an activated element.




        • Pseudo-class names are not case-sensitive.


        Possible Values

        • color − Any valid color value.

        Applies to

        Anchor / Link element.


        Following is the example which demonstrates how to use :active class to change the color of active links.

              <style type = "text/css">
                 a:active {color: #FF00CC}
              <a href = "/html/index.htm">Click This Link</a>

        This will produce following link. This will change its color to pink when user clicks it.