Use the color property to set the text color.
Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

Set the Text Color

Use the color property to set the text color. You can define the color by using the color name, hexadecimal notation, or an rgb tripplet method.

Set the text color using the color name:

<p style="color:green">Set the text color to green.</p>

Set the text color to green.

Set the text color using an rgb tripplet:

<p style="color:rgb(0,255,0)">0,255,0 is the rgb tripplet
for the color green.</p>

0,255,0 is the rgb tripplet for the color green.

With the rgb tripplet method, you pass three comma-separated decimal numbers to the rgb method. Each number can range from 0 to 255 and represents the amount of each color; red, green, and blue, in that order.

Set the text color using hexadecimal notation:

<p style="color:#00ff00;">#00ff00 is hexadecimal notation
for the color green</p>

#00ff00 is hexadecimal notation for the color green

With the hexadecimal notation method, you pass three two-digit hexidecimal numbers, with no separating comma, prefix the six digits with the # sign. Each number can range from 00 to ff and represents the amount of each color; red, green, and blue, in that order.

RSS Feed RSS Feed


Follow Stephen Bucaro Follow @Stephen Bucaro


Web Design Sections

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2016 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268