:target
Term side of the Card
Topic: Pseudo Classes
Unit title: :target
Categories: Pseudo-class
Explanation side of the Card
Explanation: The pseudo-class that styles an element that is the target of a URL fragment identifier. This is often used to highlight or bring attention to a specific section of a page when it's linked to directly, like when clicking a link that jumps to a certain part of the document.
Browser compatibility:
- The chrome browser supports this feature starting from version 1
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 1
- The safari browser supports this feature starting from version 1.3
Availability: