GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   HTML Code to go to paragraph on page (https://gfy.com/showthread.php?t=633739)

Vin 07-16-2006 04:13 AM

HTML Code to go to paragraph on page
 
I'm looking for the html code to go to a specific paragraph on a page.
So that if you click on the hyperlink, you immediately scroll down to that part of the page.

Little help please :)

ssp 07-16-2006 04:18 AM

It's called an anchor tag.

Clicking on this:

Code:

<a href="#description">Click here</a>
Will lead to this:

Code:

<a name="description"></a>

SpaceAce 07-16-2006 04:18 AM

Quote:

Originally Posted by Wytze
I'm looking for the html code to go to a specific paragraph on a page.
So that if you click on the hyperlink, you immediately scroll down to that part of the page.

Little help please :)

<A name="name">

Then, <A href="#name">.

SpaceAce

bknoob 07-16-2006 04:19 AM

Quote:

Originally Posted by ssp
It's called an anchor tag.

Clicking on this:

Code:

<a href="#description">Click here</a>
Will lead to this:

Code:

<a name="description"></a>

what he said :thumbsup

mikovargas 07-16-2006 04:21 AM

well you know, we have thesame problem

mikovargas 07-16-2006 04:21 AM

but i did consult some people here, ill keep you posted once im done through it

mikovargas 07-16-2006 04:22 AM

an anchor tag will do, but there seems to be a faster way

Vin 07-16-2006 04:38 AM

Thnx you guys, all of great help !

jayeff 07-16-2006 04:49 AM

You don't need to use a separate "a name" tag these days (although that still works fine). You can simply use
Code:

<p id="anyname">
and then
Code:

<a href="#anyname">link text</a>


All times are GMT -7. The time now is 05:21 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123