home / software / tips and tricks / What is Tag Helpers in ASP.NET Core?

What is Tag Helpers in ASP.NET Core?

Updated:  10/03/2017 13:10 PM
Author:  Shiju Mathews

Status:    Resolved.

Tag Helpers enable server-side code to participate in creating and rendering HTML elements in Razor files. For example, the built-in ImageTagHelper can append a version number to the image name. Whenever the image changes, the server generates a new unique version for the image, so clients are guaranteed to get the current image (instead of a stale cached image). There are many built-in Tag Helpers for common tasks - such as creating forms, links, loading assets and more - and even more available in public GitHub repositories and as NuGet packages. Tag Helpers are authored in C#, and they target HTML elements based on element name, attribute name, or parent tag. For example, the built-in LabelTagHelper can target the HTML
Tags: What is Tag Helpers in ASP.NET Core?
Updated on: October 2023