By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,625 Members | 2,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,625 IT Pros & Developers. It's quick & easy.

Highlighting text in html document

P: 8
Can any one please tell me how can i highlight a perticular text in HTML
DOCUMENT.
Mar 7 '08 #1
Share this Question
Share on Google+
4 Replies


Death Slaught
100+
P: 1,137
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

P: 12
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
P: 87
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

P: 8
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.