Check out example codes for "how to highlight text in html". It will help you in understanding the concepts better.

Code Example 1

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;

Code Example 2


Code Example 3

<p>The Math test is on <mark>Friday</mark>.</p>

Learn ReactJs, React Native from