<div>
<p data-foo='bar'>this is styled</p>
<p data-foo='baz'>this is unstyled</p>
</div>
<style>
[data-foo='bar'] {
color: red;
}
</style>