add snippet for html document