title: Conditional alternative table row styles in HTML5
body: <p>Is there any changes regarding this questions <a href="https://stackoverflow.com/questions/1355875/conditional-alternative-table-row-styles">Conditional alternative table row styles</a> since HTML5 came in?</p>
  
  <p>Here is a copy of original question:</p>
  
  <p>Is it possible to style alternate table rows without defining classes on alternate  tags?</p>
  
  <p>With the following table, can CSS define alternate row styles WITHOUT having to give the alternate rows the class "row1/row2"? row1 can be default, so row2 is the issue.</p>
  
  <pre><code>  &lt;style&gt;
    .altTable td { }
    .altTable .row2 td { background-color: #EEE; }
    &lt;/style&gt;
  
    &lt;table class="altTable"&gt;
     &lt;thead&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/thead&gt;
     &lt;tbody&gt;
      &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr class="row2"&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr class="row2"&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
     &lt;/tbody&gt;
    &lt;/table&gt;
  </code></pre>