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, GHOST_URL/the-target-trick#target-test, then that element will be the target and and styles applied to the :target pseudo-class for that element will take effect. Last year, I wro
![The :target Trick | bitsofcode](https://cdn-ak-scissors.b.st-hatena.com/image/square/f8174882ea725b04e0e067f0051b0d22f7309873/height=288;version=1;width=512/https%3A%2F%2Fbitsofco.de%2Fassets%2Ficons%2Ficon_128.png%3Fv%3D05153cb11d)