@Override
    public String toHTMLTagString() {
        String subCompString = "";
        for (HTMLTagComponent comp : this.subComps) {
            subCompString += comp.toHTMLTagString();
        }

        if (super.tagattribute != null) {
            return (HTMLTagComponent.TAG_START_LEFT + super.tagname + " " + super.tagattribute + HTMLTagComponent.TAG_START_RIGHT
                    + super.tagcontent
                    + subCompString
                    + HTMLTagComponent.TAG_END_LEFT + super.tagname + HTMLTagComponent.TAG_END_RIGHT);
        } else {
            return (HTMLTagComponent.TAG_START_LEFT + super.tagname + HTMLTagComponent.TAG_START_RIGHT
                    + super.tagcontent
                    + subCompString
                    + HTMLTagComponent.TAG_END_LEFT + super.tagname + HTMLTagComponent.TAG_END_RIGHT);
        }
    }