User1535942433 posted
Hi rajemessage,
As far as I think,CSS could execute onclick event. It relies on the pseudo-class and on the general sibling selector ~.
However,the onclick event isn't same with those which are set using javascript.It only be used in the Foreground code and change the style of page.
More details,you could refer to below article:
https://tympanus.net/codrops/2012/12/17/css-click-events/
Best regards,
Yijing Sun