title: Setting CSS Class/Styles using Zend Framework HtmlTag View Helper
body: <p>I am trying to add CSS Class &amp; inline style to a form element's/decorator. I tried </p>
  
  <pre><code>$this-&gt;addElement('text', 'honeypot', array(
      ...
      'decorators' =&gt; array(
          'ViewHelper',
          'Label',
          array('HtmlTag', array('tag' =&gt; 'p', 'class' =&gt; 'honeypot', 'style' =&gt; 'display: none'))
      )
  ));
  </code></pre>
  
  <p>But the <code>&lt;p&gt;</code> didn't have the <code>class</code> &amp; <code>style</code> attributes attached</p>