The :target pseudo-class refers to an element within the document that the URL’s fragment points to. For example, this piece of text is wrapped in a <mark> element which has an ID of #target-test. If you went to the url, https://bitsofco.de/the-target-trick#target-test, then that
Source: The :target Trick