As I have been informed, there's an old function in CSS (and later it turned out it's irrelevant):
[att^=val] – the “begins with” selector
[att$=val] – the “ends with” selector
[att*=val] – the “contains” selector
It's supported from v2.0 of Chrome, they say, but it doesn't work.
Is there any other way?
ADDITION: I would like to address a HTML-tag that contains a certain text: 'word':
<p class="something">123 word 456</div>
A theoretical selection could be :contains():
p.something:contains('word') {}
Thanks to answers, I now know that the selector above is not for this, but then what? Is there a CSS addressing for this?