API

Label Tag Helper

Generates a label associated with a model-bound field.

Formal Syntax & Structure

csharp syntaxcsharp
<label asp-for="Title"></label>

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.<label asp-for="Title"></label>
C# & .NET Reference