Back to the index.

Selects an element that is a target; i.e. that has an ID with the same value as the URL's hash.


p:target {color: #CB000F;}

This paragraph has id="testHash". If you target this by #testHash it should become red.

Once you’ve done that, use the Back button to go back to the previous state. The paragraph should lose its red colour again.