public function setTagPrefix($prefix)
    {
        if(!is_string($prefix) && $prefix !== null)
        {
            throw new HTMLTagException("The tag prefix must be a string or null.");
        }

        $this->tag_prefix_previous = $this->getTagPrefix();
        $this->tag_prefix = $prefix;

        return $this;

    }