Grouping inserts into a single operation is faster as it causes the page to be redrawn only once. The same goes
for style properties, where it's better to assign a css class than apply multiple styles.