Html Library Help
Element Constructor (tagName)
NamespacesHtmlElementElement(String)
Initializes a new instance of the Element class.
Declaration Syntax
C#Visual BasicVisual C++
public Element(
	string tagName
)
Public Sub New ( _
	tagName As String _
)
public:
Element(
	String^ tagName
)
Parameters
tagName (String)
Name of the tag.
Examples
CopyC#
string expected = "<span>Hello</span>";
string actual =
    new Element("span")
        .Update("Hello")).ToString();
Assert.AreEqual(expected, actual);

Assembly: Html (Module: Html) Version: 1.0.0.2 (1.0.0.2)