How To Highlight Certain Words in Your WordPress Blog

A really simple tip for those who is entirely blind to html. There will be times when you want to highlight certain words with a bright background to emphasize the importance of the words. There are two ways to achieve this. One is to add another class in your stylesheet so when you write a post you can simple tag them with your CSS stylings. This method has it’s limits as every word you tag will have the same highlight color.
A more versatile method will be to use the span tag. With this you do not need to add any CSS codes and you can choose any colors you like for every different word you want to highlight. For example:
<span style="background:#00FFFF">This is a Cyan background</span>
results in:
This is a Cyan background
<span style="background:#FFFF00">This is a yellow background</span>
results in:
This is a yellow background
You can go even further like specifying the size and color of the fonts
<span style="background:#00ffff; font-size:18px; font-weight:bold;color:#FF0000">This is bold text in red</span>
results in:
This is bold text in red
Or if you like, you can just colorize the fonts without any backgrounds
<span style="color:#ff0000">This is a red color font without background</span>
results in:
This is a red color font without background
<span style="color:#ffff00; font-size: 20px; font-weight: bold">This is bold red text without background</span>
results in:
This is bold red text without background
Let your imaginations fly.
Other Awesome Articles
- CSS Codes To Highlight WordPress Post Background Color.
- How To Give Your Own Comments A Different Look In WordPress
- 10 Bold Fonts To Create Beautiful Blog Theme Headers
- How To Add Colors To Your Theme Sidebar
- Add Text And Image Shadows To Your WordPress Post
- How To Align Your WordPress Quotes Left Or Right
- How To Change WordPress Theme Fonts
- How To Make Web Buttons
Users who found this page were searching for:
- how to highlight certain words in a text
- text highlight in wordpress
- highlight wordpress text
- text in wordpress highlight
- how to highligh words in wordpress
- how to highlight text wordpress
- "highlight certain words" in word 2007
11 Responses to “How To Highlight Certain Words in Your WordPress Blog”
Comments
Read below or add a comment...
Trackbacks
-
Latest update from Blogigs.com – How To Highlight Certain Words in Your WordPress Blog Read all of it here
-
How To Highlight Certain Words in Your WordPress Blog #RTW
-
[...] July 24, 2010 in Uncategorized Take a look at this link [...]

If you enjoyed this post, whether it's awesome or lame, consider leaving a comment or 









Another great blog design tip — thanks, Costa!
Blame the CSS purists for emphasizing style sheets more than inline styles. Both have their uses and I use both.
3 words , You Are Awesome!
“Blame the CSS purists ” I think it’s more about blame the Search Engines that kinda force you to use CSS or otherwise they show some kind of warning and stuff.
And if you want the SEs to love you, you gotta play by their rules!
Comment moved by Admin
Comment moved by Admin
No problem mate. Done deal.