View Full Version : How to create a link to another page, but with a slight catch

12-02-2009, 01:31 AM
I would like to create a link from one page to another.
Easy - I know. But I would like that link to to take me to a certain part of the other page, specifically towards the bottom of the page.

Is that possible to do? And if so, what are the different ways I can specify where in the page to go? (i.e. what are the parameters that I can play with)


12-02-2009, 02:42 AM
That's what named anchors are for. Let w3schools describe it (http://www.w3schools.com/HTML/html_links.asp):

The name Attribute

When the name attribute is used, the <a> element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.

Named anchor syntax:

<a name="label">Any content</a>

The link syntax to a named anchor:

<a href="#label">Any content</a>

The # in the href attribute defines a link to a named anchor.

Old Pedant
12-02-2009, 02:46 AM
Which means that your reference on the first page could look like:

<a href="someOtherPage.html?#bottom">Go to the bottom of that other page</a>

12-02-2009, 06:08 AM
Thanks to you both!