Link to specific part of page
Looks like you have a misunderstanding of how anchors work, you need to use the href
attribute.
<a name="test"></a> <!-- not required --><a id="test"></a> <!-- not required --><h4 id="test">SOME TEXT</h4> <!-- this is correct -->
To link to the <h4 id="test">
element do this (if target on the same page):
<a href="#test">Go to Test</a>
If target on a different page:
<a href="other_page.html#test">