Class Label
Generate a standard HTML5 <label> tag
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<ITag>
System.Collections.IEnumerable
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Label : Tag<Label>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceFor(String)
Set the for attribute on the <label> tag
Declaration
public Label For(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | what should be in for='...'. If called multiple times, later values replace the previous value. |
Returns
| Type | Description |
|---|---|
| Label | a Label object to enable fluid command chaining |
Form(String)
Set the form attribute on the <label> tag
Declaration
public Label Form(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | what should be in form='...'. If called multiple times, later values replace the previous value. |
Returns
| Type | Description |
|---|---|
| Label | a Label object to enable fluid command chaining |
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable