<!DOCTYPE html>
<meta charset="UTF-8">
<style>
#highlight {
background-color: yellow;
color: limegreen;
}
#highlight-and-target-text {
background-color: orange;
color: limegreen;
}
#target-text {
background-color: orange;
}
</style>
<span id="highlight">Some </span><span id="highlight-and-target-text">te</span><span id="target-text">xt</span>