Not scrolling to in-page anchor (syllabus)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2021
12:13 PM
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?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2021
12:52 PM
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.