HTML - Anchors

Z

Zak

Hi,

I am not using FrontPage to do my web pages but didnt know where else to
post my problem. I am creating web pages for an existing company website.

I have a section in which I need to use anchors because there is just too
much info, so I would like to give the user the option to click on the links
at the top of the page which would take them down to their desired area. At
the bottom of each section there would be a ‘back to top’ button aswell.

How do I go about doing these?

The links should be:

Section A
Section B
Section C

And then in each section there should be a ‘back to top’ button.

What is the HTML code? And how do I put this to use? I know it would have to
be in the HTML section of the page but where ?

Thanks so much in advance.
 
T

Tom [Pepper] Willett

Google for: hyperlink and bookmark tutorial
and you'll come up with many hits, including:
http://www.usaid.gov/regions/afr/leland/tutorial/5.htm

--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
"You're a daisy if you do!"
---
FrontPage Support:
http://www.frontpagemvps.com/
===
: Hi,
:
: I am not using FrontPage to do my web pages but didnt know where else to
: post my problem. I am creating web pages for an existing company website.
:
: I have a section in which I need to use anchors because there is just too
: much info, so I would like to give the user the option to click on the
links
: at the top of the page which would take them down to their desired area.
At
: the bottom of each section there would be a 'back to top' button aswell.
:
: How do I go about doing these?
:
: The links should be:
:
: Section A
: Section B
: Section C
:
: And then in each section there should be a 'back to top' button.
:
: What is the HTML code? And how do I put this to use? I know it would have
to
: be in the HTML section of the page but where ?
:
: Thanks so much in advance.
:
 
T

Thomas A. Rowe

<a href="#SectionA">Section A</a>

<a href="#top">Top of Page</a>

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
Z

Zak

Hi,

I have tried creating the anchors and although they look fine when i try to
use them they dont work.

Here is the HTML i put at the top of all text

P><STRONG><A href="#SecA">SecA</A></STRONG></P>

And this is the HTML i put at the beginning of the text where SecA is

<P><a name="SecA"></a><STRONG> SecA</STRONG></P>

what am i doing wrong? everytime i click on the button in web view it either
doesnt do anything or takes me to a blank page instead of jumping down to SecA

please help. thanks.
 
K

Kathleen Anderson

Hi Zak:
A couple things I would change: I would make the anchor and its destination
all lower case; i.e. <a href="#seca">. Also, how long is the page? If it's
too short the bookmark will have no effect because you are already at the
bottom of the page.

Is the page where you're using this on the web where we can take a look?

--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
Expression Web Resources: http://www.spiderwebwoman.com/xweb/
FrontPage Resources: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top