How to highlight your text in colors
By admin on Dec 31, 2009 | In Free Web Design Tutorials | Send feedback »
The benefit of highlighting your text in colors
Highlighting your texts in colors helps centrialize certain part of the text obviously it
brings attention to powerful parts of your text. It works well on sales pages that sells a
product or services or membership sites etc.
This tutorial shows you how to do this by using simple html codes.
A very basic web page will be used here as you can see called webpage.html, all it has is some text centered:


Go to internet explorer and click on refresh and you will see this:

However you may not want the whole paragraph highlighted but just part of the text, so you can go back to the html code and get rid of

Back to internet explorer you can see what it does:

Rather than use color as words you can also use color in standard text codes, for example red is the #ff0000. These color codes always start with hash then six characters.

Follow up:
And the text is 'This is some text'and the code is standard html document opens with html tag closing html tag, and in the head section, there is a title tag. In the body section there are a couple of empty paragraphs, which is just to add some space here. Then the center tag is used to center the text in a new paragraph. So all look pretty standard. So now you're ready to learn something which is often quite useful, it's how to highlight your text in yellow The reason yellow color is used is because generally you will find black texts appear more readable highlighted in yellow or bright green, instead of blue or red or other colors. So what you do is in the paragraph tag you do a space then add:style="background:yellow"

Go to internet explorer and click on refresh and you will see this:

However you may not want the whole paragraph highlighted but just part of the text, so you can go back to the html code and get rid of
style="background: yellow"
Then what you do here is to use the span tag: then make sure you close the span tag where you want the highlight to end:

Back to internet explorer you can see what it does:

Rather than use color as words you can also use color in standard text codes, for example red is the #ff0000. These color codes always start with hash then six characters.
Feedback awaiting moderation
This post has 7 feedbacks awaiting moderation...
Leave a comment
| « How To Add Popups That Won't Be Blocked By Your Visitors' Website | How To Register Your Own Domain Name » |



