CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS :active Selector

CSS :active Selector

 

 

A link becomes active when we click on it. The :active selector is used to select and style such types of links. We can use this on all elements and it is not specific to links only. It is also used in combination with :visited and :hover selectors. However, :active must be used after :hover in the CSS.

 

Syntax:-

 

Its syntax is:-
:active {
  css declarations;
}

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS