
Customizing ASP.NET Core 5.0
By :

With TagHelpers, you are able to extend existing HTML tags or to create new tags that get rendered on the server side. Neither the extensions nor the new tags are visible in the browsers. TagHelpers
are a kind of shortcut to write easier (and less) HTML or Razor code on the server side. TagHelpers
will be interpreted on the server and will produce "real" HTML code for the browsers.
TagHelpers
are not a new thing in ASP.NET Core. They have been present since the first version of ASP.NET Core. Most existing and built-in TagHelpers
are a replacement for the old-fashioned HTML helpers, which still exist and work in ASP.NET Core to keep the Razor views compatible with ASP.NET Core.
A very basic example of extending HTML tags is the built-in AnchorTagHelper
:
<!-- old fashioned HtmlHelper --> @Html.ActionLink("Home", "Index", "Home") <!-- new TagHelper --> <a asp-controller="Home" asp-action=...