<style>
input[value=test] {background-color:#000; color:#fff;}
ul.odd li:nth-child(odd) { background-color:#eee; }
</style>
<input value="test" />
notice i have selected this input tag by using the
<code class="inline">input[value=test]</code> you can exchange the "attribute type"="value for the attribute" anyway you want.
<ul class="odd">
<li>Odd</li>
<li>Even</li>
<li>Odd</li>
<li>Even</li>
</ul>
input[value=test]
you can exchange the "attribute type"="value for the attribute" anyway you want.