Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 964 Bytes

File metadata and controls

14 lines (8 loc) · 964 Bytes

Text Fragments

When a browser supports it you can use Text Fragments to link directly to a spot on a page WITHOUT the need for tags that have ids. Per the docs

Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to annotate it with an ID, using particular syntax in the URL fragment.

There are some ways this can get pretty complicated, but the simplest use cases seem pretty powerful. There have been several times when I've wanted to do this exact thing and didn't know it existed!

Here's an example link

https://www.espn.com/mlb/story/_/id/42105281/world-series-2024-dave-roberts-los-angeles-dodgers-manager-vindication-hall-fame#:~:text="Focus,guy."