public function appendHtmlContent(string $content) : Tag
    {
        if ($this->isVoid) {
            throw new \LogicException('Void elements cannot have any contents.');
        }

        $this->content .= $content;

        return $this;
    }
public function appendHtmlContent(string $content) : Tag
    {
        if ($this->isVoid) {
            throw new \LogicException('Void elements cannot have any contents.');
        }

        $this->content .= $content;

        return $this;
    }
public function appendHtmlContent ( string $ content ) : Tag { if ( $ this -> isVoid ) { throw new \ LogicException ( 'Void elements cannot have any contents.' ) ; } $ this -> content .= $ content ; return $ this ; }
Appends HTML content to this tag.

@param string $content The HTML content.

@return Tag This instance, for chaining.

@throws \LogicException If this tag is a void element.
Appends HTML content to this tag .