<!DOCTYPE html>
<style>
.red { color: red; }
</style>
<div>
  <span id="s1">test</span><br />
  <span id="s2" class=red>test</span><br />
  <span id="s3" class=red>test</span><br />
  <span id="s4">test</span><br />
</div>