I have different anchor tags with href=#ids and I need to hide them using a general css rule for all of them,
Content xxxxxxxxx Table 1&
Try using attribute selectors:
a[href='#tab1']{ display: none }
Or even simply
[href='#tab1']{ display: none }
http://www.w3.org/TR/CSS2/selector.html