code for html output