CSS :active Selector

You are Here:

CSS :active Selector

Example

HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> a:active{ color: green; } </style> </head> <body> <h1>CSS :active Selector</h1> <a href="/css" target="_blank">CSS</a> <a href="/js">JavaScript</a> <a href="/jquery" target="_self">JQuery</a> </body> </html>

Syntax

Using CSS

:active { color: red; }

More Examples

Example

HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> a:link{ color: green; } a:hover{ color: red; } a:active{ color: coral; } a:visited{ color: #8c8c8c; } </style> </head> <body> <h1>CSS :active Selector</h1> <a href="/css" target="_blank">CSS</a> <a href="/js">JavaScript</a> <a href="/jquery" target="_self">JQuery</a> </body> </html>

Reminder

Hi Developers, we almost covered 98.7% of CSS Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in CSS.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author