HTML – Highlight Text With BACKGROUND-COLOR

Definition and Usage

The background-color property sets the background color of an element.

The background of an element is the total size of the element, including padding and border (but not the margin).

On the printed page, people are accustomed to seeing portions that have been marked by a highlighter. You can achieve the same effect on your Web page using a Style attribute and BACKGROUND-COLOR.

For example, this HTML code inserts a yellow background on the word "next".

<HTML>
<HEAD> 
</HEAD>
<BODY> 
<P>The due date is <FONT style="BACKGROUND-COLOR: yellow">next</FONT>week.</P> 
</BODY> 
</HTML>
SOURCE

LINK

LANGUAGE
ENGLISH