t.o.c in solution page

t.o.c in solution page

Is it possible to create a solution page with anchor links in it?
Problems now is that it appends the anchor id's to url and a new tab gets opened with an empty solution.

e.g.
<h3>
    Table of Contents
    <br>
</h3>
<ul>
    <li>
        <a href="#section1">
            Jump to Section 1
        </a>
        <br>
    </li>
    <li>
        <a href="#section2">
            Resetting User Passwords
        </a>
        <br>
    </li>
</ul>

<h2 id="section1">
    1. Troubleshooting Network Connectivity
    <br>
</h2>
<p>
    Your content for section 1 goes here...
    <br>
</p>

<h2 id="section2">
    2. Resetting User Passwords
    <br>
</h2>
<p>
    Your content for section 2 goes here...
    <br>
</p>