Linking to text fragments
source: alexwlchan.net ↗Alex Chan:
One of my favourite features added to web browsers in the last few years is text fragments.
Text fragments allow you to link directly to specific text on a web page, and some browsers will highlight the linked text – for example, by scrolling to it, or adding a coloured highlight. This is useful if I’m linking to a long page that doesn’t have linkable headings – I want it to be easy for readers to find the part of the page I was looking for.
…
To help me out, I’ve written a small bookmarklet to generate these URLs
I totally agree that text fragments are a wonderfully helpful addition to link sharing. Alex created a bookmarklet to generate correctly formatted URLs, but if you’re a macOS/iOS user you don’t need to take this additional step. Apple added support for the feature last year, which they call link highlighting, and it’s in the context menu behind a long press/secondary click once you’ve selected text.