Czy mogę używać nieistniejących klas CSS?

Mam tabelę, w której pokazuję / chowam pełną kolumnę przez jQuery za pośrednictwem klasy CSS, która nie istnieje:

<table>
   <thead>
      <tr>
         <th></th>
         <th class="target"></th>
         <th></th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <td></td>
         <td class="target"></td>
         <td></td>
      </tr>
      <tr>
         <td></td>
         <td class="target"></td>
         <td></td>
      </tr>
   </tbody>
</table>

Z tym DOMem mogę to zrobić w jednej linii poprzez jQuery:$('.target').css('display','none');

Działa to doskonale, ale czy jest poprawne używanie klas CSS, które nie są zdefiniowane? Czy powinienem utworzyć dla niego pustą klasę?

<style>.target{}</style>

Czy są jakieś skutki uboczne lub czy istnieje lepszy sposób na to?

questionAnswers(13)

yourAnswerToTheQuestion