The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Can someone tell me what does this CSS code means?
table[class=”hide”], td[class=”hide”], a[class=”hide”], img[class=”hide”] { display: none !important; }
The CSS code above has open and close bracket “[” “]” and i’m confused what is the purpose of using them?
Advance thanks for sharing knowledge !
It makes them attribute selectors rather than strictly class selectors….apparently it helps with specificity.
Thanks guys! all of your answers are very helpful. I just learned something that will save me time styling my html.
thanks for the link gcyrillus!