How to Share a Link to a Particular Phrase


This is very handy when you want to share an excerpt of writing in context, a concept that is totally lost if you just take a screenshot with a highlight.

How This Works

This feature is made possible by a web standard called Text fragments. It’s been built into browsers for years now; it’s just not the kind of feature that made a lot of headlines at the time.

The feature basically creates a URL that includes enough information for your browser to find the highlighted text portion. If you copy a URL made this way and paste it into a document so you can study the link’s structure, you can see how this works.

In the simplest cases, the URL will include the entire highlighted portion. That works fine for short fragments, but for long passages, the URL gets ungainly pretty fast. When you’re linking to longer text fragments, the URL includes a reference to the beginning and end of the excerpt. Either way, the URL tells your browser not only which page to load, but what part of the text should be highlighted. Your browser finds the text, highlights it, and jumps directly to it.

There are subtle differences in how browsers handle this. Safari highlights text in yellow, for example, whereas in my tests Chrome seemed to prefer purple. But since this URL structure is standardized across browsers, a link created in one browser works in every browser.

It’s worth noting this feature doesn’t work in all contexts. If the website you’re reading is behind a paywall, and the person you’re sharing with doesn’t have access, they probably won’t be able to see the excerpt you’re trying to share. The feature also doesn’t work inside PDF files, even when you open them in your browser.

But sharing a text fragment, in most cases, is a lot more useful than sharing a screenshot. Give it a try the next time you’re trying to win an argument online.



Source link

  • Related Posts

    US States Are Reportedly Planning To Sue To Block Paramount’s Warner Bros. Takeover

    California’s attorney general Rob Bonta launched a probe into the deal shortly after it was announced. Robert V Schwemmer/Shutterstock Amid widespread opposition to Paramount’s $110 billion acquisition of…

    Today’s NYT Strands Hints, Answer and Help for June 7 #826- CNET

    Looking for the most recent Strands answer? Click here for our daily Strands hints, as well as our daily answers and hints for The New York Times Mini Crossword, Wordle, Connections…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    Monster Hunter Wilds confirmed for Nintendo Switch 2

    Monster Hunter Wilds confirmed for Nintendo Switch 2

    Ernie Clement hits 3-run homer as Blue Jays overcome three Baltimore HRs to beat Orioles 6-4

    Ernie Clement hits 3-run homer as Blue Jays overcome three Baltimore HRs to beat Orioles 6-4

    What to know about the ongoing protests and arrests outside a New Jersey detention center

    What to know about the ongoing protests and arrests outside a New Jersey detention center

    Sarah Snook to Star in ‘The Birds’ Limited Series

    Sarah Snook to Star in ‘The Birds’ Limited Series

    Trump pardons former Republican Rep. Stephen Buyer who was convicted of insider trading

    Trump pardons former Republican Rep. Stephen Buyer who was convicted of insider trading

    US States Are Reportedly Planning To Sue To Block Paramount’s Warner Bros. Takeover

    US States Are Reportedly Planning To Sue To Block Paramount’s Warner Bros. Takeover