For your problem statement you can use internal links:
Declare anchor link as:
<a href="#sectionName">link to section</a>
<a name="sectionName"></a>
// There is no need to put something between anchor tags for second line. Now when user clicks the link to section it will be redirected to the name portion position.