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

Code Example 1

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

Code Example 2

<mark>text</mark>

Learn ReactJs, React Native from akashmittal.com