Jump to content
Heads Up! This website is no longer maintained, if your a member from our era, consider joining the discord to say hello.
Sign in to follow this  

[html] Very Simple Anchor Tutorial

Recommended Posts

<a>

This is a simple anchor tag, along it will do nothing.

 

It goes in the <Head> Tags Of a webpage

 

To make it into a link do

<a href="http://www.Ghoztcraft.net/">Ghoztcraft</a>

The text "Ghoztcraft" will be the text you click on to go to the website.

 

To make it into an anchor, do as follows

<a name='test">test anchor</a>

 

Now, type in your URL bar This pages URL, and add #test at the end, no spaces, it should bring you down so that the words "test anchor" are at the top of your page. (Theoretically, if HTML were enabled.)

 

To make your link open in a new window do this

<a href="http://www.Ghoztcraft.net/ target="_blank">Ghoztcraft</a>

 

If you want the page to open in the same window you clicked the link, replace _blank with _self.

 

Samples:

 

Regular link:

<a href="http://www.Ghoztcraft.net/"'>http://www.Ghoztcraft.net/">Ghoztcraft</a>'>http://www.Ghoztcraft.net/">Ghoztcraft</a>

 

Anchor:

<a name="test">Test Anchor</a>

 

Open link in new window:

<a href="http://www.Ghoztcraft.net/" target="_blank">Ghoztcraft</a>

 

Open link in same window:

<a href="http://www.Ghoztcraft.net/" target="_self">Ghoztcraft</a>

 

Tutorial i wrote a long time ago, part of a bigger one, but it needs to be updated :o

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×