HtmlDocument::Body Property

 

Gets the HtmlElement for the BODY tag.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property HtmlElement^ Body {
	HtmlElement^ get();
}

Property Value

Type: System.Windows.Forms::HtmlElement^

The HtmlElement object for the BODY tag.

An HTML document is split into two major sections:

  • HEAD, which contains the document's title, any document meta-data, and SCRIPT elements.

  • BODY, which contains all of the elements involved in the on-screen appearance of the document.

There is no equivalent Head property on HtmlDocument. To obtain the HEAD element, use GetElementsByTagName.

The following code example creates a new DIV element and appends it to the bottom of the document using the AppendChild method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: