|
HTML Home
Create a Website HTML TutorialHTML Tutorial HomeAbout HTML Getting Started HTML Elements HTML Formatting HTML Attributes HTML Colors HTML Links HTML Images HTML Meta Tags HTML Comments HTML Forms HTML Tables HTML Image Maps HTML Frames HTML Entities HTML Layouts HTML Styles HTML Scripts HTML Website Templates Website Hosting Summary HTML Code GeneratorsHTML Code GeneratorHTML Table Generator Marquee Generator Music Code Generator HTML Text Generator Text Box Generator Free HTML CodesHTML Background CodeHTML Comment Box Codes HTML Font Codes HTML Picture Codes HTML Marquee Code HTML Music Codes More Codes... HTML ReferenceComplete HTML Tag ListHTML Special Characters Hex Color Codes HTML Help Got a MySpace Page?Get "www.yourname.com" for your MySpace page. Learn how >>. |
HTML Font Color CodeTo define font color in HTML you should use the CSS 'color' property. If you've used other font properties such as 'font-family', 'font-size' etc, you might assume there's a 'font-color' property or a 'text-color' property. But, there isn't a 'font-color' or 'text-color' property. Nope. To set font/text color, you simply use the 'color' property - this is the same property you use to set the color of any HTML element. Setting Font Color - Option 1Use this option if you only want to set the color of a small amount of text.
<p>Normal font color <span style="color:orange">different font color</span> normal font color</p>
This code results in: Normal font color different font color normal font color |