Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lucb1e
· 3y ago · 0 comments
(Note that this is not called a permalink but a fragment identifier
https://www.w3.org/Addressing/URL/4_2_Fragments.html
or, more memorably, the hash part of the URL
https://developer.mozilla.org/en-US/docs/Web/API/URL/hash
. Permalinks can be entirely different URLs, like a DOI link that is on a different domain and protocol altogether, but that will keep referring to this content
https://en.wikipedia.org/wiki/Permalink
)
Comments
[–]
mrpf1ster
3y ago
Ah I was referring to the github specific terminology when sharing a link to a line inside a code file.
[–]
ryanisnan
3y ago
Thanks! I referred to them as anchors.
[–]
wiml
3y ago
I think pedantically anchors are the markers in the document, and the URL fragments refer to the anchors to tell the browser to scroll there. If I'm wrong, someone will be along to correct me...