Table of Contents

Interface IHtmlLabelElement

Namespace
AngleSharp.Html.Dom
Assembly
AngleSharp.dll

Represents the label HTML element.

[DomName("HTMLLabelElement")]
public interface IHtmlLabelElement : IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IGlobalEventHandlers
Inherited Members
Extension Methods

Properties

Control

Gets the control that the label is assigned for, if any.

[DomName("control")]
IHtmlElement? Control { get; }

Property Value

IHtmlElement

Form

Gets the form element that the label is assigned for, if any.

[DomName("form")]
IHtmlFormElement? Form { get; }

Property Value

IHtmlFormElement

HtmlFor

Gets or sets the ID of the labeled control. Reflects the for attribute.

[DomName("htmlFor")]
string? HtmlFor { get; set; }

Property Value

string