Style
|
Description
|
---|---|
Color
|
the color property is used to set the color of the text. The value can be:
▪ Hexadecimal color: #FF0000
▪ RGB color: rgb(255,0,0)
▪ Standard colors: aqua, black, blue, fuchsia, gray, grey, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow
|
Background-color
|
specifies the background color of an element. The value can be:
▪ Hexadecimal color: #FF0000
▪ RGB color: rgb(255,0,0)
▪ Standard colors: aqua, black, blue, fuchsia, gray, grey, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow
|
Font
|
include font-family, font-size, font-style, font-weight.
▪ The font-size can be specifies in: px, em, pt, cm, mm, inch, xx-small, x-small, small, medium, large, xx-large.
▪ The font-style support: normal, italic.
▪ The font-weight support: normal, bold, bolder (same as bold), lighter (same as normal), 100~500 (same as normal), 600~900 (same as bold)
|
Margin
|
the margin clears an area around an element (outside the border). The margin does not have a background color, and is completely transparent.
▪ margin: 10px 5px 15px 20px;
|