Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: All
Jun 8, 1999

Highlight HTML Text With BACKGROUND-COLOR

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>
Recent versions of Netscape Navigator and Internet Explorer support the background color style.
Ken Cox
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap