Scroll to text fragment
Newly available since 2024-10-01
Text fragments are URL fragments on the form #:~:text=snippet
and link to a snippet of text within a page. The browser may scroll, highlight, or otherwise bring that text to the reader's attention.
Learn more
No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.Specifications
Browser support (view on caniuse.com)
- Chrome 80 Released on 2020-02-04
- Chrome Android 80 Released on 2020-02-04
- Edge 80 Released on 2020-02-07
- Firefox 131 Released on 2024-10-01
- Firefox for Android 131 Released on 2024-10-01
- Safari 16.1 Released on 2022-10-24
- Safari on iOS 16.1 Released on 2022-10-24
Usage (according to Chrome Platform Status)
~0.090% of page loads. More data at chromestatus.
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist