You will need a way to manage the tag span. For example, idbut then in javascript I will edit some of the properties style. You can have a property for everything you want to highlight, as shown below.
.HL {
background: #ffff99;
color: #000000;
}
, .
DocumentgetElementsByTagName("title")
Document.getElementByID("ID") .
setAttribute(name, value) .
, .
<span id="abc" class=""> Sample </span>
var temp = Document.getelementByID("abc");
temp.setAttribute('class', 'HL');