[Solved] How to avoid specifying a class name multiple times in html?


Try this, this will reduce your class and will give you specific class to target.

.xx td{color:#ff0000}
<table class="xx">
  <tr>
    <td>
      blah blah
    </td>
    <td>
      blah blah
    </td>
  </tr>
  <tr>
    <td>
      blah blah
    </td>
    <td>
      blah blah
    </td>
  </tr>
</table>

5

solved How to avoid specifying a class name multiple times in html?