1For HTML5: (with 'mark' tag)
2
3<p>Do not forget to buy <mark>milk</mark> today.</p>
4
5In CSS file: (To customize highlight)
6
7mark {
8 background-color: yellow;
9 color: black;
10}
1<style>
2mark {
3 background-color: yellow;
4 color: black;
5}
6</style>
7
8<mark>Highlighted text!!</mark>