Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A question for you boffins of HTML

0 views
Skip to first unread message

Jason Taylor

unread,
Jun 5, 2001, 5:14:41 PM6/5/01
to
Hi, I've got a question for anyone who'd like to take a shot. I just wanted
to know how you can make a link to a specific point on a page. I've a very
long essay that needs to be on a single page, and I need a small table of
contents at the top, which has links further into the document.

Any help whatsoever would be appreciated, thanks in advance.


Peter Boulding

unread,
Jun 5, 2001, 5:41:27 PM6/5/01
to
On Tue, 5 Jun 2001 22:14:41 +0100, "Jason Taylor"
<hac...@jason84.freeserve.co.uk> wrote:

>Hi, I've got a question for anyone who'd like to take a shot. I just wanted
>to know how you can make a link to a specific point on a page. I've a very
>long essay that needs to be on a single page, and I need a small table of
>contents at the top, which has links further into the document.

The syntax for the first subheading within the document:

<A NAME="subhead1">Some topic or other</A>


The link to it (in the table of contents at the top):

<A HREF="#subhead1">Some topic or other</A>.


"Name" other subheadings and create remainder of table of
contents in similar manner.


Note: To link from a different document:

<A HREF="the_relevant_page.htm#subhead1">Some topic or other</A>


HTH

--
Regards Peter Boulding
p...@UNSPAMpboulding.co.uk (to e-mail, remove "UNSPAM")
Fractal gallery at http://www.pboulding.co.uk/
BTi inanity at http://www.btinternet.com/~p.boulding/

0 new messages