CSS :active Selector

Last Updated Jul 21, 2015, 12:00:06 PM





CSS :active Selector

The css :active selector is used to select and style the active link on a webpage to differentiate between the clicked link and an unclicked link.

Syntax Example

The above example code will style the active(current url) link background-color as red.


Watch GIF Try It Now

CSS Selectors Reference

CSS Selectors Reference

CSS Basic Selectors

CSS Combinators



Sources and Credits

The source of the content has been referred and updated with Mozilla Foundation and W3C Organization

Last Updated Jul 21, 2015, 12:00:06 PM