Return to the Web Authoring Forum | Post a Follow-Up

Highlighting texts

Posted by stacruzp (My Page) on
Thu, Feb 13, 03 at 18:58

I have seen html docs where texts were highlighted or having color background (not BODY BGCOLOR=...). Was it done with just html tags or other processes were used? Thanks - Jun.

Follow-Up Postings:

RE: Highlighting texts

you can set the font color
< font color="#ff0000" > red text

RE: Highlighting texts

Hi Prettyphysicslady,
Thanks for the idea. But what I would really like is to highlight an html text(s), like you would highlight a paragraph on a, say, paperback with colored pigment (highlighter pen) so it would be easy to find later. Jun.

RE: Highlighting texts

Here's how
< font style="background-color:yellow" >yellow highlighted text

Just close the spaces in the opening font tag
< font...yellow" > (There should be no space between < and font or yellow" and >

I hope that's clear. If not, look at this web page and view the source code:

Highlighted Text

RE: Highlighting texts

Bird_nj - just what I had in mind! Thanks! Jun.

RE: Highlighting texts

The new modern way to do this is via 'span' tags. That is, instead of

<font style="background-color:yellow">yellow highlighted text</font>

You would use

<span style="background-color:yellow">yellow highlighted text<span>

In any case, you should definitely add </FONT> anywhere you use <FONT>

 o Post a Follow-Up

Please Note: Only registered members are able to post messages to this forum.

    If you are a member, please log in.

    If you aren't yet a member, join now!

Return to the Web Authoring Forum

Information about Posting

  • You must be logged in to post a message. Once you are logged in, a posting window will appear at the bottom of the messages. If you are not a member, please register for an account.
  • Please review our Rules of Play before posting.
  • Posting is a two-step process. Once you have composed your message, you will be taken to the preview page. You will then have a chance to review your post, make changes and upload photos.
  • After posting your message, you may need to refresh the forum page in order to see it.
  • Before posting copyrighted material, please read about Copyright and Fair Use.
  • We have a strict no-advertising policy!
  • If you would like to practice posting or uploading photos, please visit our Test forum.
  • If you need assistance, please Contact Us and we will be happy to help.

Learn more about in-text links on this page here