Local Hyperlinks

June 8th, 2010 ‡ 0 commentspermalink

School_Project_Write

I’ve been meaning to get better at uploading stuff to and writing to the web. I’m already pretty expert at leeching content out. But, you know, it’s the little things. And some big things too.

I occasionally write long pieces and I’ve always wanted to include ‘local hyperlinks’. But, apparently, they’re not called that. Most of the pages seem to describe them as something like, “links to a specific part in the page”. I prefer local hyperlinks.

Why haven’t I done anything about it so far? Friction. I got to the stage where I could find the tutorial on the web pretty quickly (though the first time took me a while). But, even then, there’s this whole cutting and pasting and copying thing. And I just couldn’t be arsed.

Anyway, for refinding, here’s how to do it. It’s really simple. First create the ‘anchor’:

<a name="insert name of what you want your local hyperlink
 to be called"></a>

Then, point the hyperlink to the local anchor with the ‘#’ sign:

<a href="webpage.htm#localhyperlink">local link</a>

As is so often the way, it took me longer to work out how to show ‘code’ in a webpage than it did to work out how to do local hyperlinks.