View Full Version : Linking to a paragraph in the same page
Haisook
09-23-2005, 05:00 PM
This is common in web pages I guess, but I don't know how to do it.
My page consists of several titles, and several corresponding paragraphs. I need each title when clicked on link to its corresponding parag. (in the same page)
Hope I was clear,
Thanks
jscheuer1
09-24-2005, 04:09 AM
The link will look like this:
<a href="#label">Link Text</a>label is a descriptive name for the section in the page you want to go to. Then you put this right above said section:
<a name="label"></a>
Haisook
09-24-2005, 09:31 AM
Thanks a lot
mwinter
09-25-2005, 10:37 PM
<a name="label"></a>Alternatively, place an id attribute on the paragraph element and link to that:
<a href="#fragment">...</a>
<p id="fragment">...</p>It won't work in NN4, but it shouldn't be critical whether it did or not.
Mike
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.