Sarah Earnshaw Fanlisting Sarah Earnshaw Fanlisting Chantal-Janzen.tk Megan Hilty Fanlisting Megan Hilty Fanlisting
Visitors:
Online users:

Life's a cabaret It sucks to be me Fanlistings Something Wicked is coming your way Chantal-Janzen.tk

Behind the Stars Borrowed Angels Cast Change - June 7th, 2008 Fabala.co.uk Obsession Oliver Tompsett OTST Preluded.net Sarah Earnshaw
Apply now / More links


People always link to have their sites linked on other sites. That's a sort of advertising. Basicly a whole website is linked together. In this tutorial I'm gonna teach you in short who to link to other sites and who to add links to pages of your own website.

More linking? | Links to other sites

Step 1:
Open the page where you want to add the link.

Step 2:
Paste this code on the place you want to have your link (somewhere between the < body > and < /body > tags:

You do need to customise this code. Just replace LINK WEBSITE for the URL of the site/page you're linking to and the RANDOM TEXT to the text you want to have linked.

For example:
If I use this code:
and add it to my HTML for my website, you'll get this:

It's all green!

As you hover of the text you see it's linked. If you click on it, you go to the main page of my site (that's where I linked the text at). This is a very basic link.


If you want to link to a page in a subfolder on your webspace, you can add the link, like for example:

http://www.itsallgreen.org/sarah/index.php

A shorter way of linking within your webspace, is to typ, in this case, only sarah/index.php. That code will look like this:


But it looks the same when you add it in your HTML as the first example I gave you. Look:
Sarah Earnshaw Fanlisting

What also can happen is that you're in a subfolder in your webspace and you want to link to the main folder. You can use the whole link for that, but there's also a short way of doing that:


The '../' indicates you want to the folder on top the one you're in at the moment. So let say I would post that link in my 'sarah' folder, I would go back to my main folder, which is this site.

Please note! For every folder you want to go back, you have to add '../'. So let say for example you're in this folder:

http://www.itsallgreen.org/london/pics/index.php

And you want to go to the root of the domain (http://www.itsallgreen.org) the 'short' link will look like this:

../../index.php

[Top]

Basicly, linking to other sites is the same as linking to a page within your site. But there are some tricks to open a page in a new window.

Personally I was like to have a new site open in a new windows, so to do that we take the basic link:

and add a small piece into this one.


As you can see I added a part. This part is 'target=_blank' . This part makes sure when you click on the link, the new page will open in a new window.

For example:
This link still looks the same when you add it in your HTML:
London weblog

Only when you click on it, it opens in a new windows.

Back to tutorials

(c) itsallgreen.org 2008
Questions? | Disclaimer