Understanding Tag Helpers

  • Adam Freeman
Chapter

Abstract

Tag helpers are 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 generating 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. In this chapter, I describe how tag helpers work and how custom tag helpers are created and applied.

Keywords

Class Attribute Context Data Input Element Output Element View Model 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Adam Freeman 2016

Authors and Affiliations

  • Adam Freeman
    • 1
  1. 1.Milton Keynes MK6 3PAUK

Personalised recommendations