Anchor tag helper is used generate href attributes to link to a particular controller action or MVC route. Basic example
<a asp-controller="Products" asp-action="Index">Login</a>
Sometimes, we need to specify additional parameters for the controller action that you are binding to. We can specify values for these parameters by adding attributes with the asp-route- prefix.
<a asp-controller="Products" asp-action="Details" asp-route-id="@Model.ProductId">
View Details
</a>