move buildHtmlTag() into helper