
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.
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 ReferenceCSS 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