Search DaTutorials:  
HOME
Html Tutorials
Basics
Forms
Frames
Hyperlinks and URLS
Images
Lists
Background
Colors
Fonts
Tables
Meta Tags
Events
Javascript Integration
Sound
Other
Search For a Tutorial
Html Reference

HTML Text Formatting Tutorial - Colored Text

Description:


How to make colored text in an html page.

Code:

<html>
<body>

This is normal text. <br /> 
<font color="red">This is red text.</font> <br /> 
<font color="#CCCCCC">This is grey text.</font> <br /> 
<font color="rgb(0,0,255)">This is blue text.</font> <br /> 
This is normal and <font color="red">this is red</font> text.

</body>
</html>

Play with the code:

See working example:


Explanation:

To make colored text in an html page, surround the text you want colored in the <font></font> tags and fill the COLOR property with the color you want. To specify the color you can use one of the three ways from the example.

See Also:

HTML: Html, Body, Font, Br


Online Html Forum  Discuss this tutorial in our HTML forum


     Vegas Hotel | Loans | Mortgage | Debt Management | Loan
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp