title | date | submitter | number | tags | discussion | status | related | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
I want a permalink on each heading element |
2020-11-27 13:26:43 UTC |
Anonymous |
5fc0fe93d032507fa3f1c0f5 |
|
|
|
When you browse a web page, there should always be a permalink (e.g., a small chain icon) appearing near each heading element (h1
–h6
) when you mouse-over them. This would enable you to share a direct link to that particular section. When clicking that permalink, the page URL should be directly changed to that DOM element using a dynamic fragment identifier (e.g., "BASE_URL#The-sub-title-2") and scroll the actual page content to make this particular header move to the top of the viewport.
Well-formatted GitHub README files do this nicely.