Link inside a page..

liunx

Guest
Hey..<br />
I havnt built a website for ages and totally forgot some html codes etc..<br />
Im using frontpage and was doing it the lazy way in normal mode not html, And how do i make a link on a page so when i click on it it goes to a certain section on that page?<br />
Isnt it called a bookmark? If it is i cant seem to get it to work and i even read the help index heheh!<br />
<br />
Cheers,<br />
Scott<!--content-->Here is how it works. Let's say you are at the bottom of the page and you want to go to the top. The link at the bottom would look like this<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"#top">goto top</a><br />
<br />
then at the top of the page, you need an anchor. You can do this in two different ways. One is to take an existing element and add an id attribute, or add an anchor and name it.<br />
<br />
<div class="banner" id="top"><br />
or<br />
<a name="top"><br />
<br />
If you want to link to a certain point in a different page, the link would look like this<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"another_page.html#section1"><br />
<br />
and then the section you are linking to would need to have an id of "section1"<br />
<br />
I hope that answers your question.<br />
<br />
Doog Xela<!--content-->Just don't forget to close the anchor tag!<br />
Like this:<br />
<br />
<a name="my_anchor"></a><br />
<br />
In FrontPage it's called "bookmark", and you can find it in the menu under "insert"!<!--content-->Ooops. I can't believe I forgot to do that. Good call.<br />
<br />
Doog Xela<!--content-->
 
Back
Top