Complete CSS Selector Reference
Highlight active HTML anchor:
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.
Complete CSS Selector Reference
Your message has been sent to W3Schools.