output tag to file