# HTMLElement
Class
## About
`HTMLElement` is the parsed HTML tree object passed to node import methods. It exposes tag names, attributes, text, children, and inner content without requiring custom nodes to parse raw markup themselves.
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| AddChild | value As HTMLElement | (None) | Adds child to this HTML element. |
| Attribute | name As String <br> defaultValue As String = "" | String | Returns the named HTML attribute, or the supplied default when it is absent. |
| ChildAt | index As Integer | HTMLElement | Returns the embedded child node at the specified index. |
| ChildrenNamed | name As String | HTMLElement | Returns the direct child HTML elements with the supplied tag name. |
| Constructor | tagName As String = "" <br> textContent As String = "" | (None) | Creates a new HTML element instance initialized from the supplied values. |
| HasAttribute | name As String | Boolean | Returns whether the HTML element contains the named attribute. |
| InnerText | (None) | String | Returns the combined plain text of this HTML element and its descendants. |
| IsText | (None) | Boolean | Returns whether is text. |
| LastChildIndex | (None) | Integer | Returns the last zero-based child index, or -1 when there are no children. |
| SetAttribute | name As String <br> value As String | (None) | Sets attribute from the supplied value. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Content | String | (None) | Gets or sets the text directly contained by this HTML element. |
| TagName | String | (None) | Gets or sets the tag name. |