Web platform features explorer

::target-text

Newly available since 2024-12-11
Tags: css Groups: Text fragments

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

Learn more

Browser support

  • Chrome 89 Released on 2021-03-02
  • Chrome Android 89 Released on 2021-03-02
  • Edge 89 Released on 2021-03-04
  • Firefox 131 Released on 2024-10-01
  • Firefox for Android 131 Released on 2024-10-01
  • Safari 18.2 Released on 2024-12-11
  • Safari on iOS 18.2 Released on 2024-12-11

Usage (according to Chrome Platform Status)

~0.035% of page loads. More data at chromestatus.