HtmlDocument::Body Property
.NET Framework (current version)
Gets the HtmlElement for the BODY tag.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: