I have a simple table
<tr>
<td class="first">I am the first</td>
<td class="second">You are the second</td>
<td class="third">He is third</td>
<td class="fourth">Someone else is fourth</td>
<td class="fifth">That guy is fifht</td>
<td class="sixth">Who care's about sixth</td>
</tr>
I want to apply css rules on some of classes in td only. I can write something like-
td.first, td.fourth, td.fifth
{
color:purple;
}
This works. Or i can use classes. I was wondering is there any efficient/ better way to write selectors in such case.
My concern: Is browser, is going to look for all class and then search for td for each comma separation. That means it going to find all three classes and then evaluate tag. Is there any way that browser will find all three classes and then matches the tag other than using a single class.