Adds attributes to table elements