Jump to content


FAQ's on many websites.

  • Please log in to reply
1 reply to this topic

#1 OriginalSunny

  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 16 April 2006 - 06:31 PM

I have been looking on a number of websites and seen that in their FAQ sections they have links to the answers to their questions. The thing is how do they create the link so it goes to the answer on a certain part of the same page?? The only thing i know is to create a link to another page not at a different part of the same page. If you know how to do this please let me know as i am creating an FAQ section for my website.

#2 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 16 April 2006 - 06:46 PM

This is not PHP but more towards HTML if I am reading your post correctly. You usually see this type of thing on long pages that scoll quite far down the page. Such as a link that says Go to TOP at the bottom of a page. Then you'll place at the top of your page (just before the body tag).
<a name="top"></a>

The code below is the linked that'll be a placed at the bottom of the page.
<a href="#top">Go to Top of page</a>

If you have long page where you have to scrol then you click the Goto top of page link and it'l autotmatically go to the top of the page. This is the same affect that FAQ's use.

Heres an example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<a name="top"></a>
<a href="#bottom">Go to bottom</a>
<h1 style="margin-bottom: 2000px;">Top of Page</h1>
<a name="bottom"></a>
<a href="#top">Top of Page</a>
If you click the link Go to bottom it'll go to the bottom of the. Same applies to the Go to Top link at the bottom but it goes to the top.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users