macOS: Share a Link That Jumps to a Specific Line on a Webpage
Source: MacRumors
Copy Link With Highlight in Safari
Apple added full support for text‑fragment links in Safari 18, and the feature is available in Safari on macOS Sequoia and later. To use it, visit a web page, highlight the text you want to link to, then right‑click (or Ctrl‑click) and choose Copy Link with Highlight from the dropdown menu.
The “Copy Link to Highlight” option
The selected option generates a special URL that includes a hash (#) and a text fragment containing a few words that bookend the selected text. Sharing this link sends the recipient directly to that part of the webpage with the passage highlighted.
The feature also works in Safari on iPhone and iPad, though it has been reported as buggy and inconsistent in iOS 26.3.
Background
- In 2020, Google introduced Scroll to Text Fragment (STTF) in Chrome, allowing URLs to link directly to any visible text on a page.
- The feature was later added to the Chromium codebase, so browsers such as Edge, Opera, Brave, and Vivaldi also support it.
- Firefox has introduced a similar capability (details vary by version).
This article, “macOS: Share a Link That Jumps to a Specific Line on a Webpage,” first appeared on MacRumors.com.