mark tag in html
snippet in html

html highlight text

user1610

For HTML5: (with 'mark' tag)

<p>Do not forget to buy <mark>milk</mark> today.</p> 

In CSS file: (To customize highlight)

mark {
  background-color: yellow;
  color: black;
}

css mark color

user933

<style>
mark { 
  background-color: yellow;
  color: black;
}
</style>

<mark>Highlighted text!!</mark>

how to highlight text in html

user5232

<mark>text</mark>

mark tag in html

user1541

mark {
  display: inline-block;
  line-height: 0em;
  padding-bottom: 0.5em;
}