New constructor for HtmlElement