---
id: "target-text"
kind: "web-feature"
canonical: "https://timetostable.com/feature/target-text"
baseline: "low"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# ::target-text (`target-text`)

The ::target-text pseudo-element allows you to style text highlighted by a URL text fragment such as #:~:text=snippet.

- **Group**: Text fragments
- **Baseline**: Newly Available
- **Newly Available Date**: 2024-12-11
- **Specification**: https://drafts.csswg.org/css-pseudo-4/#selectordef-target-text
- **Constituent BCD keys**: 1

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 89 | 2021-03-02 |
| Chrome Android | 89 | 2021-03-02 |
| Edge | 89 | 2021-03-04 |
| Firefox | 131 | 2024-10-01 |
| Firefox for Android | 131 | 2024-10-01 |
| Safari | 18.2 | 2024-12-11 |
| Safari on iOS | 18.2 | 2024-12-11 |

