CSS Attribute selector

HTML

<td data-gender="male">...</td>

CSS

td[data-gender="male"] { ... }

Jquery

$('td:contains("male")')
$(element).not(":contains('male')")