Community

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lsfinn
New Member

Not scrolling to in-page anchor (syllabus)

Jump to solution

I'm trying to introduce a toc into my syllabus using anchors: e.g.,

<h3>Table of Contents</h3>
<ul>
<li><a href="#contact">Contact and Consultation</a></li>

...

<h2 id="#contact">Contact and Consultation:</h2>

...

 

When I attempt to follow the link, nothing happens: no error message, no scroll, no nothing.

I've tried this in both firefox and safari.

What am I doing wrong?

0 Kudos
1 Solution

Accepted Solutions
chofer
Community Coach
Community Coach

Good afternoon, @lsfinn ...

I *think* the issue is that you need to remove the "#" sign from your <h2> line...so that it looks something like this:

<h2 id="contact">Contact and Consultation:</h2>

You might want to check out Anchor Tags explained by a language teacher. for more examples.

Hope this helps a bit!  Sing out if you have any other questions about this.

View solution in original post

Tags (5)
0 Kudos
2 Replies
chofer
Community Coach
Community Coach

Good afternoon, @lsfinn ...

I *think* the issue is that you need to remove the "#" sign from your <h2> line...so that it looks something like this:

<h2 id="contact">Contact and Consultation:</h2>

You might want to check out Anchor Tags explained by a language teacher. for more examples.

Hope this helps a bit!  Sing out if you have any other questions about this.

Tags (5)
0 Kudos
lsfinn
New Member

Bingo! Thanks much!