Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacRumors

macrumors bot
Original poster
Apr 12, 2001
67,493
37,779


Sometimes when you share a webpage link with someone, you just want to bring their attention to a specific passage or sentence to make your point, rather than have them read through the entire article.

safari-icon-blue-banner.jpeg

In 2020, Google added a function to its Chrome browser called Scroll to Text Fragment (STTF) that helps you achieve this. It allows URLs to link directly to any visible text on a page. You may have seen it work in Google Search, where clicking on a link in your returned results takes you to a highlighted passage of text further down the page.

Since then, Google has built the feature into the open source Chromium code, so most other popular Chromium browsers like Edge, Opera, and Vivaldi also have it these days. (Brave is an exception, citing some privacy risks of STTF.)

Copy Link With Highlight in Safari

Late last year, Apple joined the club, and brought full support to Safari 18.2. To use the feature, visit a web page and simply highlight the text you want to create a link to, then right-click and choose Copy Link with Highlight from the dropdown menu.

copy-link-with-highlight1.jpg
The "Copy Link to Highlight" option

This will generate a special URL that includes a hash (#) symbol and "text" element, followed by a few words that bookend the selected text. All you need to do is share the link with someone, and when they click it they'll be sent directly to that part of the webpage with the specific passage highlighted, as shown below.

copy-link-with-highlight2.jpg
The shared link as the recipient sees it


That's all there is to it. The Copy Link to Highlight option is also available in Safari on the iPhone and iPad, and indeed in any browser that uses WebKit on iOS and iPadOS. Hopefully that makes it easier for you to direct the recipient of the link to the content you actually want them to focus on.

Bear in mind that the look of highlighted text can differ depending on whether the page author has styled it to look a certain way. Also, text fragment linking does not work in PDFs. Firefox users: You'll need to install Thomas Steiner's Link to Text Fragment extension, which will add a Copy Link to Selected Text option to the contextual menu.

Article Link: Send Web Links That Jump to the Exact Text You Mean
 
Pretty cool to share a website. Just wish that Google results wouldn't do that. I hate it when Google defaults to it.
The STTF is just an extra variable added to the website URL. You can remove it from the URL and reload the page if you don't want the text highlighted.
 
  • Like
Reactions: neuropsychguy
I hate this highlighted text crap. When the background is black the text is next to impossible to read. Thank you Google and my Web Browser for making the content I searched for impossible to read.... How do I permanently turn the feature off?
 
  • Like
Reactions: Stenik
Hasn't this URL format been possible for at least more than a decade? Isn't it the basis of a link to somewhere else on the page?
 
Hasn't this URL format been possible for at least more than a decade? Isn't it the basis of a link to somewhere else on the page?
No, it’s a relatively new feature. It’s based on the syntax of anchor links, but it works differently. Chrome introduced it in 2020.
 
  • Like
Reactions: autrefois
(Mac website writers' Minds Think Alike?)

Here is an in-depth article about STTF that was published yesterday by TidBITS:
 
  • Like
Reactions: klasma
Didn't they have this since the 90s with anchors?

Nice but my issue is with Google search itself.

Gone are the days it gives you a variety of relevant results and instead it just gives a mix of ads and results it thinks you want, often unrelated.

check out Brave Search and if you are willing to pay , Kagi.com is paid. No ads with many features.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.