Output html according to specific types