table generator for html class