title: Add HTML ID or HTML Class in <?php the_category(); ?>
body: <p>I would like to add a custom HTML class or HTML id to this:</p>
  
  <pre><code>&lt;?php the_category(); ?&gt; 
  </code></pre>
  
  <p>According to WordPress:</p>
  
  <pre><code> &lt;?php the_category( $separator, $parents, $post_id ); ?&gt; 
  </code></pre>
  
  <p><a href="http://codex.wordpress.org/Function_Reference/the_category" rel="nofollow">http://codex.wordpress.org/Function_Reference/the_category</a></p>
  
  <p>I just need  a HTML id so what I did was </p>
  
  <pre><code>&lt;?php the_category('custom-category'); ?&gt; 
  </code></pre>
  
  <p>but it's not working. Please help.</p>