Build html elements by tag name.