It is a new feature that has been introduced in ASP.NET Core MVC and are C# classes that transform HTML elements in a view. Common uses for tag helpers include URLs for forms using the application’s routing configuration, ensuring that elements of a specific type are styled consistently, and replacing custom shorthand elements with commonly used fragments of content.
It enable server-side code to participate in creating and rendering HTML elements in Razor files. Tag helpers are a new feature and similar to HTML helpers, which help us render HTML. Tag helpers can be used to apply certain CSS classes to HTML. For example you could create a tag helper that transforms an element from to . The tag helper will recognize the bs-button-color attribute and use its value to set the class attribute on the element sent to the browser. This example might not look very useful, but it provides a foundation for explaining how tag helpers work.
For Use Tage Helper :
@addTagHelper *,Microsoft.AspNetCore.Mvc.TagHelpers


Santhakumar MunuswamyRank #128 · 17.3K reputationPosted Jul 10, 2020, 1:24 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jul 10, 2020, 6:33 PM EDT
Amit KumarRank #459 · 5.4K reputationPosted Jul 11, 2020, 8:21 AM EDT