title: I want to apply an existing CSS style to all labels on a page. How?
body: <p>Note, this is different than the older question <a href="https://stackoverflow.com/questions/3540380/how-can-i-apply-css-on-all-buttons-which-are-present-in-that-page">How can I apply CSS on all buttons which are present in that page?</a> because this is an already existing style. So given that a style, which we'll call "standard_label_style" already exists in an included CSS file, what can I do to say that all the labels on this page should have that style short of adding:</p>
  
  <pre><code>class="standard_label_style"
  </code></pre>
  
  <p>to each and every one? And yes, I know I could apply the styles ex-post-facto with a snippet of jQuery or JavaScript code. I'm just trying to learn how I'm supposed to do it with CSS.</p>
  
  <p><strong>Follow Up</strong></p>
  
  <p>I've gotten several comments that say just use syntax like this .standard_label_style, label... Unfortunately that does nothing like what I want. That would allow me to apply additional rules to the standard_label_style class, as well as rules to labels within this page, but would not allow me to apply that style to all the labels on this page. To see an example of this, here is a stylesheet and html to demonstrate. The label without a class will still not appear in red but that's what I'm hoping to have happen. I want to apply an existing class to all those labels on the page, not just the one with the class and without adding new styling on this page, the existing style should be the only style.</p>
  
  <p>included.css:</p>
  
  <pre><code>.standard_label_style { color: red; }
  </code></pre>
  
  <p>test.html:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;link rel="stylesheet" type="text/css" href="included.css"&gt;
      &lt;style&gt;
        .standard_label_style, label { }
      &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;label class="standard_label_style"&gt;Test Label&lt;/label&gt;&lt;br/&gt;
      &lt;label&gt;Unclassed Test Label&lt;/label&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>