ExampleAdd an image in front of the current active HTML anchor:
Try it yourself » |
URLs with an # followed by an anchor name, link to a certain element within a document. The element being linked to is the target element.
The :target selector can be used to style the current active target element.
The :target selector is supported in all major browsers, except Internet Explorer.