467,874 Members | 1,734 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,874 developers. It's quick & easy.

Highlighting text in html document

Can any one please tell me how can i highlight a perticular text in HTML
DOCUMENT.
Mar 7 '08 #1
  • viewed: 1567
Share:
4 Replies
Death Slaught
1GB
That depends on what you mean by 'highlight'. Do you want the background color to change when the mouse rolls over it. Do you want it to look like someone took a highlighter to it and for it to stay the way? Please be more specific when asking questions.

Thanks, Death
Mar 7 '08 #2
I'll assume he meant the second option...

CSS:
.highlighter {
background-color: Yellow;
color: Black;
}

HTML:
We had better <span class="highlighter">highlight this text</span> for emphasis.

Helpful Article: Span vs. Div
Mar 8 '08 #3
just a feeling
That depends on what you mean by 'highlight'. Do you want the background color to change when the mouse rolls over it. Do you want it to look like someone took a highlighter to it and for it to stay the way? Please be more specific when asking questions.

Thanks, Death
Ooooooh, u r back !!!!
WELCOME back, Death. Glad to see u. I've missed ur rabbits over the past couple of weeks :)
Mar 10 '08 #4
Thank you e bay

thaks a lot.
Mar 12 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Adelson Anton | last post: by
2 posts views Thread by mail.goodies | last post: by
4 posts views Thread by Bob hotmail.com> | last post: by
4 posts views Thread by Patrick Porter | last post: by
3 posts views Thread by Patrick Porter | last post: by
1 post views Thread by mikename | last post: by
7 posts views Thread by Leif902 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.