4-3. Font Color Settings

Font color setting:

1. Use the Color property to set the color of the font, the format is: color: legal color value

2. Color value can be in English color name, 16 binding, RGB and RGBA

3. When the text does not set a color, the default is black.

4. English color name may not be accepted by some browsers, using a 16-way color value, or RGB color value can be identified by all browser and normally

 

<DIV> I want self-learning network </ div>
<div style = “Color: Red;”> I want self-learning network 1 </ div>
<div style = “Color: # 0000ff;”> I want self-learning network 2 </ div>
<div sty = “Color: RGB (122, 89, 223);”> I want self-learning network 3 </ div>
<div style = “Color: RGBA (122, 89, 223, 0.8);”> I want self-learning network 4 </ div>