public function buildHtmlElement($name = '', $value = '', $id = '', $class = '', $attributes = [])
    {
        return new HTMLElement($this->getHTMLDocument(), $name, $value, $id, $class, $attributes);
    }
public function buildHtmlElement($name = '', $value = '', $id = '', $class = '', $attributes = [])
    {
        return new HTMLElement($this->getHTMLDocument(), $name, $value, $id, $class, $attributes);
    }
public function buildHtmlElement ( $ name = '' , $ value = '' , $ id = '' , $ class = '' , $ attributes = [ ] ) { return new HTMLElement ( $ this -> getHTMLDocument ( ) , $ name , $ value , $ id , $ class , $ attributes ) ; }
Build an HTML Element.

@param string $name       The element's tagName.
@param string $value      The element's content value.
@param string $id         The elements id attribute.
@param string $class      The element's class attribute.
@param array  $attributes A set of extra attributes

@return HTMLElement
@throws \InvalidArgumentException
Build an HTML Element .