Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Highlighted Text in HTML Anyone?

Status
Not open for further replies.

Chinyere

Programmer
Mar 9, 2001
79
US
Hello All [afro2],

Just out of curiosity is there a way to code HTML so that the resulting text on the web page looks like it is highlighted text? Like text in a book with yellow highlighter, for example? If anyone knows this, please let me know. Alas, I will have to settle for colored text for now...

Chinyere
 
Try this

<span> test text1 </span> <br>
<span style=&quot;background-color: yellow&quot;> test text2 </span> <br>

It uses the 'style' tag which allows you to include CSS code.
I learned CSS from
-Dave
 
Thanks guys!!! I will try your suggesttions.

Chinyere
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top