You are at the section Intro to CSS
Fun With Text: Color
examples using Text CSS tags
Using the font element: (you can also use body, div, h1, h2, h3, h4, h5, h6, and p elements too)
<font style="INSERT CSS HERE">
We're going to change the color of the text. Let's change it to red by
using a the color name, red.
<font style="color:red">
This is the color red
</font>
You can also change it to red by using an RGB value like this:
<font style="color:rgb(255,0,0)">
This is the color red
</font>
Lastly, you can change it to red by using a hex value like this:
<font style="color:#ff0000">
This is the color red
</font>
You can also specify other colors by name, RGB value, or hex value. Here are some common ones:
<font style="color:blue">
This is the color blue
</font>
<font style="color:green">
This is the color green
</font>
<font style="color:white">
This is the color white
</font>
<font style="color:brown">
This is the color brown
</font>
<font style="color:aqua">
This is the color aqua
</font>
<font style="color:orange">
This is the color orange
</font>
<font style="color:lime">
This is the color lime
</font>
<font style="purple:lime">
This is the color purple
</font>
© 1995-2023. davesfunstuff.com. All Rights Reserved. Reproduction of any part of this website without expressed written consent is prohibited.
Help Support Our Ad-Free Web Section
Just use our PayPal link to pay.
Please to help pay for webhosting, domain payments, expenses and labor in keeping this section going. Thank you.
,
,
,
,
,
,
,
Notice Of Disclosure (updated June 2023):
"David Tanny is the owner and operator of the domains davesfunstuff.com and davidtanny.com"