Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

active

The active user action pseudo-class selector will target elements when the user clicks to interact with them.
Syntax Logicelement:active { property_list }

CSS Code Example

<style> .class1:active { font-size:50px; } </style> <p class="class1">My paragraph content...</p> <p>My paragraph content...</p>

CSS

Selectors

universaltypecompoundclassidnotattributedescendantchildadjacent siblinggeneral siblingfirst childlast childonly childfirst of typelast of typeonly of typenth childnth last childnth of typenth last of typeemptyrootfirst linefirst letterbeforeafterlinkvisitedhoveractivefocustargetenableddisabledcheckedlang