...or how to change CSS onClick without javascript. From W3schools:

The :active selector is used to select and style the active link.

The :active selector can be used on all elements, not only links. Here you can read more about CSS's dynamic classes, and here you can see the list of CSS pseudo elements and classes.


<!DOCTYPE html>

		<link rel="stylesheet" type="text/css" href="/index.css">

		<div id="beAgressive">
			Yo! I am going to be active test!
				And I will be under active test!



#beAgressive:active {
	color: brown;

#beAgressive>div:active {
	color: red;

Notice line #beAgressive>div with ">" sign I said that I want to apply CSS to all divs which are under ID "beAgressive".

Here you can see the example. (click on "And I will be under active test!")