title: Difference between Class vs CSSClass in ASP.Net CSS + CSS syntax question
body: <p>What is the difference between:</p>
  
  <pre><code>&lt;asp:GridView CssClass="someclass"
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;table class="someclass"&gt;
  </code></pre>
  
  <p>And how does it relate to how one defines CSS?
  For example, using CssClass, one can (I think) write CSS like so:</p>
  
  <pre><code>.someclass {font-family:"arial";  
          background-color:#FFFFFF;  
          width: 100%;  
          font-size: small;}  
  .someclass th {background: #7AC142;  
               padding: 5px;  
              font-size:small;}
  </code></pre>
  
  <p>But using class, it seems this syntax doesn't work, and judging from <a href="http://www.w3.org/TR/css3-selectors/#class-html" rel="noreferrer">http://www.w3.org/TR/css3-selectors/#class-html</a> I would have to write the above like this:  </p>
  
  <pre><code>.someclass {font-family:"arial";  
          background-color:#FFFFFF;  
          width: 100%;  
          font-size: small;}  
  th.someclass {background: #7AC142;  
               padding: 5px;  
              font-size:small;}
  </code></pre>
  
  <p>Can someone shed some light on which is the correct way, or if they are both correct, but there is a difference between class and CssClass in ASP.Net?</p>
  
  <h2>UPDATE</h2>
  
  <p>Ok, looks like they are the same thing....so, are the above syntaxes both correct when using class or cssclass, because they don't seem to be.</p>