I found a weird behaviour of <a href='url'>
and I'm not able to understand why it acts in this way.
This is a little snippet in order to make everything as clear as possible:
<a class="nav-link" href="index.html"><button type="button" class="btn btn-secondary">Home</button></a>
<a class="nav-link" href="index.html#anchor"><button type="button" class="btn btn-secondary">click me</button></a>
So the first link refresh the page, while the second one just skips to the anchor without reloading the page. Why? I'm not getting it and I cannot find anything online.