Learning CSS - Part 12 - font color
Features color to change the text color used parts page . For example, the text color can change a table or a portion of text Page with the tag SPAN've marked with different colors with the rest of the text Do. The tag for the application of the tag <FONT> And thus ID font color tags that are used in HTML4 is limited in important More finds .
However, in previous sections also have used this feature but has not mentioned about it .
Like COLOR tag FONT color in this feature are both set. Overall shape of this feature is as follows :
Code : |
color: # XXXXXX |
Note: XXXXXX Numerical equivalent of the color is rather ColorName One can write the name of the desired color. (Signature was the first part.)
If the typical colors that are known to use the name Is enough to get your desired color names in use this feature. This Method is simpler, but also has less flexibility because you can only paint Your desired color from a few select names .
If you want to use more colors and better able Hair reject your comment can select colors from hexadecimal equivalent Use. In this case you can use the 216 color Web Color Select your desired .
Color code in the previous section is described
Here to mention a few examples of features explains color. We Here id to define the style we use this feature, but Keep in mind that this feature can specify a tag or Face class and id in HEAD text or foreign style to intensify .
For example, using color change text color code table, we can write the following table :
Code : |
|
Result code with code that has been at the bottom is the same
Code : |
|
Results Both the above code is as follows
This text will be displayed in red .
Remember that you can feature color for each Rows or cells in a separate table to use. Just to "Style =" color: XXX in each part and put your desired color instead Place XXX .
Categories: Education Css


