Html table from class with attributes