on clicked css code example Example 1: css clicked event CSS clicked event :active { css declarations; } Example 2: css on click something:active {}