Such links are most commonly used for jumping from a table of contents to the beginning of a chapter or section (as in Wikipedia).
To do this, you need two pieces of code (in the html editor, of course): one at the source point and one at the destination point.
• If the destination point is on the same post or page, the code model is:
Source (= link proper)
Where I’ve written UniqueName you can write anything – just make sure it’s exactly the same in that source/destination pair (including capitalization), and it’s unique to that pair (for another link like that, you’ll need a different UniqueName).
For example, your table of contents might be:
<a href="#ch1">Chapter One</a>
Then right before each section title you would write:
(You can also use a source/destination pair to link back from the end of each section to the table of contents, but this is superfluous if the table of contents is at or near the beginning of the page: readers can use the back-to-top keyboard arrow.)
• If the destination point is on another post or page, then the link proper must include the URL of that post or page:
For a live example, click the links in my left sidebar under “Lists of Posts”.
To make the links open in a new browser window or tab, you need to turn the beginning of the link proper to this:
• To style the link proper in a way other than the default of the theme you’re using, you need this beginning (see my posts on formatting text):
• You can also add back-to-top links at the end of each chapter or section:
But they aren’t really necessary, since one can use the back-to-top arrow of the keyboard.