color
英['k?l?(r)] 美[?k?l?]
n.<Beauty>Color, color; skin color, complexion, blood color ;Pigment, dye; Essence
v.<Beauty>Coloring; changing the color of; whitewashing, rendering, giving color; blush
css color property syntax
Function: The color attribute specifies the color of the text.
Description: This attribute sets the foreground color of an element (in HTML representation, it is the color of the element text); raster images are not affected by color. This color also applies to all borders of the element, unless overridden by border-color or another border-color property. To set the foreground color of an element, the easiest way is to use the color attribute.
Note: Please use a reasonable combination of background color and text color to improve the readability of the text. All browsers support the color attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).
css color property example
<html> <head> <style type="text/css"> body {color:red} h1 {color:#00ff00} p.ex {color:rgb(0,0,255)} </style> </head> <body> <h1>這是 heading 1</h1> <p>這是一段普通的段落。請注意,該段落的文本是紅色的。 在 body 選擇器中定義了本頁面中的默認文本顏色。</p> <p class="ex">該段落定義了 class="ex"。該段落中的文本是藍色的。</p> </body> </html>
Click the "Run instance" button to view the online instance