Jump to content


Photo

[HTML] Anchor points


  • Please log in to reply
1 reply to this topic

#1 Torn

Torn

    Mmphumph!

  • Hosted
  • 2,238 posts
  • Projects:Only War 2
  •  Mmmph mm mumph umph!

Posted 26 August 2005 - 04:59 PM

I would write a basic HTML Tutorial but there is one already in the Digital section, so I won't :shiftee:

Anyway, here's how to set up simple anchor points for use in a FAQ page or something. These are used to move to a certain section of text down the page.

First we need to set the anchor point in the text. Scroll down to the text text you want to link to, and place the following code infront of the text, where 'name' is you chosen name for the anchor.

<a name="name">

Next we have to link to that anchor. Scroll back to the piece of text you want to use as the link, and use the following code, where again 'name' is the name of the anchor you are linking to, and where 'Text' is the text you are using as a link.

<a href="#name">Text</a>

Now save your web page, and test them. If it's been done correctly, when you click the link, it should instantly scroll down the page to where you placed the anchor.

You can see it in action on Only War's FAQ Page :D (http://onlywar.gamemod.net/faq.php)

Edited by Blodo, 26 August 2005 - 07:37 PM.


#2 the_kid

the_kid

    L337 Pwnerer of N00bs

  • Project Team
  • 1,734 posts
  • Location:La$ Vega$, NV
  • Projects:freelancing between what interests me
  •  + TRIPLEhelix

Posted 23 December 2005 - 09:23 PM

I use to use anchorpoints quite frequently back in the day... however now I prefer separte pages on an optimized webpage, so it is easy and fast to load even on dialup and you get what you clicked without the mess of everything else.

generally originization of pages are very well respected. and the anchor points are a form of organizations and can look very nice if done properly, but i preferr the use of separate pages myself.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users