CSS3 :target Selector
Highlight active HTML anchor:
border: 2px solid #D4D4D4;
Try it yourself »
Definition and Usage
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.
Note: The :target selector is not supported in Internet Explorer 8, and earlier versions.
Thank You For Helping Us!
Your message has been sent to W3Schools.