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

Amit KumarPosted Jul 11, 2020, 12:21 PM
Jignesh KumarPosted Jul 10, 2020, 10:33 PM
Santhakumar MunuswamyPosted Jul 10, 2020, 5:24 AM