I have these divs that I\'m styling with .tocolor, but I also need the unique identifier 1,2,3,4 etc. so I\'m adding that it as another class tocolor-1
.tocolor
tocolor-1
Yes you can this.
*[id^='term-']{ [css here] }
This will select all ids that start with 'term-'.
'term-'
As for the reason for not doing this, I see where it would be preferable to select this way; as for style, I wouldn't do it myself, but it's possible.