Revise HTML for group attributes