Create attributes for group elements