Say you, or I, have coded an HTML element...
H
...and some :hover CSS...
:hover
Both ways are equally good. However i would put it on the id itself as :hover does not work on ie6 or below if element is not an anchor. If you do not care about older versions of IE. Then both ways are correct.