Not scrolling to in-page anchor (syllabus)

Jump to solution
Community Member

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

<h3>Table of Contents</h3>
<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?

1 Solution
Community Coach
Community Coach

Good afternoon, @lsfinn ...

I *think* the issue is that you need to remove the "#" sign from your <h2> 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