cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution
Highlighted
New

Refining navigation to a point in a page

I am new to Web Hosting. I want to be able to have someone click on a link on one page and land on a section on a different page, but I cannot figure out how to point to anything more specific than a page. Is there a way to insert tags or bookmarks or something to the different sections of that page and then link to the tag/bookmark?

1 REPLY 1
Super User III Super User III
Super User III
Solution

Re: Refining navigation to a point in a page

Yes, if you add an id to the section it can be linked directly.

 

<h2 id="supercoolsection">Super cool section</h2>

It can be linked on the same page.

<a href="#supercoolsection">Skip the boring stuff.</a>

From a different page

<a href="coolpage.html#supercoolsection">Skip the boring stuff.</a>

Or from a completely different site

<a href="http://www.coolexample.com/coolpage.html#supercoolsection">Skip the boring stuff.</a>