example5_inner_tag - contents of a tag may include another tag

here demonstrated by a recursive tag maker



show FuncyTag html string output

show Javascript source code

To Notice: This primarily demonstrates, via this recursive function, that the contents of a funcytag may themselves be inner functytags:
    function inner_tag(height) // embed inner tags until height reaches 0
    {
        return div( { cssFontSize_px:height, cssMarginLeft_px:2.5*height },
                 'begin height ' + height,
                 (height > 1) ? inner_tag(height-1) : null,
                 'end height ' + height
               );
    }

next: example6_array_contents top: all js examples