add support to add a nested tag with attributes