use type attribute for label if no label exists