Today I Learned about text fragments, which allows the author of a link to a web page, regardless of annotations or anchors present on a particular web page, to indicate exactly on the web page where to link to. For instance, highlight a quote in a page like this: (add http:// or https:// at the start to convert into a working link):
example.com#:~:text=for%20use
I learned this on the Mozilla Development Network, but thanks to links from @drdrang and @lapcatsoftware for the tips in the right direction!
https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment/Text_fragments
#TIL #TodayILearned #WebTextFragments #TextFragments #WebLinks

Text fragments - URIs | MDN
Text fragments link directly to specific text in a web page, without requiring the page author to add an ID. They use a special syntax in the URL fragment. This feature lets you create deep links to content that you don't control and may not have IDs associated. It also makes sharing links more useful by directly pointing others to specific words. Browsers may differ in how they draw attention to the linked text—usually, the text is scrolled into view and highlighted with color.

