drilling down to a segment of the page

admin

Administrator
Staff member
i have a lot of headings in my page and i would like to have hyperlinks at the top of the page, with the ability to go directly to each heading via these. How is this possible? i apologise, i am new to html! Thank you!<!--content-->To do this you need to use anchors. In your html, above each heading put the following code:<br />
<br />
<a name="anchorname"><br />
<br />
Give each anchor a different name. Then on your links at the top of the page, use the following code:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"#anchorname">link</a><br />
<br />
Use the appropriate anchorname depending on which heading you want to jump down to.<br />
<br />
Hope that helps! ;)<!--content-->^ What the Gold one said (again) ^<br />
<br />
<br />
However, you can also get a little bit more of a search engine advantage, by ensuring not only that each of those headings are actually enclosed in <hx> </hx> tags, where x is a number from 1 to 6, but by also adding a title attribute to each anchor. Search engines look for and index these attributes:<br />
<br />
<a name="anchorname" title="some text about the anchor"><br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"#anchorname" title="some text about the link">link</a><!--content-->
 
Back
Top