HtmlHelper.Label Method
Include Protected Members
Include Inherited Members
Returns an HTML label element for use in a web page.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
Name | Description | |
---|---|---|
Label(String) | Returns an HTML label that displays the specified text. | |
Label(String, Object) | Returns an HTML label that displays the specified text and that has the specified custom attributes. | |
Label(String, String) | Returns an HTML label that displays the specified text and that has the specified for attribute. | |
Label(String, String, IDictionary<String, Object>) | Returns an HTML label that displays the specified text, and that has the specified for attribute and custom attributes defined by an attribute dictionary. | |
Label(String, String, Object) | Returns an HTML label that displays the specified text, and that has the specified for attribute and custom attributes defined by an attribute object. |
Top
Remarks
The HTML label is returned as HTML markup that can be used to render the label in a web page.