This feature allows a user or author to link to a specific portion of a page, using a text snippet provided in the URL. When the page is loaded, the browser highlights the text and scrolls it into view. For example, the URL: [https://en.wikipedia.org/wiki/Cat#:~:text=On%20islands,%20birds%20can%20contribute%20as%20much%20as%2060%%20of%20a%20cat%27s%20diet] This loads the page for Cat, highlights the specified text, and scrolls directly to it.
Motivation
Navigating to a URL today will load the page scrolled to the top. On pages that provide element ids on appropriate section headings, users and other pages can link directly to those elements by providing the id in the "URL hash". For example, navigating to https://en.wikipedia.org/wiki/Cat#Senses will load the page for Cat, scrolled to the "Senses" section. However, the URL hash relies on authors annotating their page and correctly guessing all points that might be interesting to a user. This feature will allow the link-creator to specify which portion of the page is interesting, without relying on author annotations.
Documentation
Specification
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 80
- Chrome for Android release 80
- Android WebView release 80
Consensus & Standardization
Owners
Intent to Prototype url
Intent to Prototype threadSearch tags
scroll, text, fragment, url, hash,Last updated on 2021-03-10
Comments
Intent to ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/zlLSxQ9BA8Y/uw9HcwIVDQAJ