I was working on a client's website and they wanted to have the color of each of the labels for a group of radio buttons be a different color. If you use $form->setAttrib('class', 'className') it will set the class for the form element but not for the label. It turns out you need to use $form->setAttrib('label_class', 'className') and then it will the way you anticipate.