Some Basic Examples of How to Use Asp.net Core Taghelpers.
Helpers tags enable the server side code to participate in creation the rendering of HTML elements in Razor files. For example, ImageTagHelper 's feature can add a version number to the name of an image. Whenever the image changes, the server generates a new version for the image, so the cliete is guaranteed to receive the current image. There are many tag helpers models for common tasks, such as form creation, links, etc.
A friendly experience in the development of HTML, in most cases, Razor marks use tag helpers like standard HTML. Front-end developers can easily edit razor markings without understanding the Sintaxes C#.
In the project code in question, I created two taghelpers that help creation of email link and formatted phone display.
< phone > 11992116427 </ phone >The taghelper above displays the following html format:
< a href =" tel:11992116427 " > (11) 99211-6427 </ a >