optional rendering of type attributes