Target
About
The :target
pseudo-class uses the URL's fragment (the part of the URL after the # symbol) and finds the element with this id.
Target
The element will not be matched if it was inserted dynamically. It must be in the DOM when the page loads or before the hash changes.
- Click on this #example anchor link to update the hash and let the selector match the target