home HTML XML DTD CSS Visual Filter JavaScript Java ASP SSI .NET  
CSS Reference >
Suggested Reading

Data types


tag/attrib/value description
Integer 1          
i: [+|-]?[0-9]+ 1           Decimal integer (positive or negative)
h: [0-9a-fA-F]+ 1           Hexadecimal integer
Number 1          
n: [+|-]?[ [0-9]* | [0-9]+.[0-9]* ] 1           Real number (positive or negative)
String 1          
Text 1           Unquoted text
'Text' 1           Single-quoted text
"Text" 1           Double-quoted text
Length 1 3   4 3  
nem 1 4   4 3   ems, the height of the element's font
nex 1 4   4 3   x-height, ~ the height of the letter 'x'
npx 1 3   4 3   Pixels
nin 1 3   4 3   Inches, 1in = 2.54cm
ncm 1 3   4 3   Centimeters, 1cm = 10mm
nmm 1 3   4 3   Millimeters
npt 1 3   4 3   Points, 1pt = 1/72in
npc 1 3   4 3   Picas, 1pc = 1/6in = 12pt
Percentage 1 3        
n% 1 3   4     Percentage value
URI 1 3   4 3  
url(String) 1 3   4 3   Universal Resource Identifier
Color 1 3   4 3  
#hhh 1 3   4 3   Hexadecimal RGB
#hhhhhh 1 3   4 3   Hexadecimal RRGGBB
rgb(i,i,i) 1 3   4 3   Integer range 0 - 255
rgb(n%,n%,n%) 1 3   4 3   Float range 0.0% - 100.0%
black 1 3   4 3   #000000
white 1 3   4 3   #FFFFFF
red 1 3   4 3   #FF0000
yellow 1 3   4 3   #FFFF00
lime 1 3   4 3   #00FF00
aqua 1 3   4 3   #00FFFF
blue 1 3   4 3   #0000FF
fuchsia 1 3   4 3   #FF00FF
gray 1 3   4 3   #808080
silver 1 3   4 3   #C0C0C0
maroon 1 3   4 3   #800000
olive 1 3   4 3   #808000
green 1 3   4 3   #008000
teal 1 3   4 3   #008080
navy 1 3   4 3   #000080
purple 1 3   4 3   #800080
aliceblue - 3   4 -   #F0F8FF
antiquewhite - 3   4 3   #FAEBD7
aquamarine - 3   4 3   #7FFFD4
azure - 3   4 3   #F0FFFF
beige - 3   4 3   #F5F5DC
bisque - 3   4 3   #FFE4C4
blanchedalmond - 3   4 3   #FFEBCD
blueviolet - 3   4 3   #8A2BE2
brown - 3   4 3   #A52A2A
burlywood - 3   4 -   #DEB887
cadetblue - 3   4 3   #5F9EA0
chartreuse - 3   4 3   #7FFF00
chocolate - 3   4 3   #D2691E
coral - 3   4 3   #FF7F50
cornflower - 3   4 -   #6495ED
cornsilk - 3   4 3   #FFF8DC
crimson - 3   4 -   #DC143C
cyan - 3   4 3   #00FFFF
darkblue - 3   4 -   #00008B
darkcyan - 3   4 -   #008B8B
darkgoldenrod - 3   4 3   #B8860B
darkgray - 3   4 -   #A9A9A9
darkgreen - 3   4 3   #006400
darkkhaki - 3   4 3   #BDB76B
darkmagenta - 3   4 -   #8B008B
darkolivegreen - 3   4 3   #556B2F
darkorange - 3   4 3   #FF8C00
darkorchid - 3   4 3   #9932CC
darkred - 3   4 -   #8B0000
darksalmon - 3   4 3   #E9967A
darkseagreen - 3   4 3   #8FBC8F
darkslateblue - 3   4 3   #483D8B
darkslategrey - 3   4 -   #2F4F4F
darkturquoise - 3   4 3   #00CED1
darkviolet - 3   4 3   #9400D3
deeppink - 3   4 3   #FF1493
deepskyblue - 3   4 3   #00BFFF
dimgray - 3   4 3   #696969
dodgerblue - 3   4 3   #1E90FF
firebrick - 3   4 3   #B22222
floralwhite - 3   4 3   #FFFAF0
forestgreen - 3   4 3   #228B22
gainsboro - 3   4 3   #DCDCDC
ghostwhite - 3   4 3   #F8F8FF
gold - 3   4 3   #FFD700
goldenrod - 3   4 3   #DAA520
greenyellow - 3   4 3   #ADFF2F
honeydew - 3   4 3   #F0FFF0
hotpink - 3   4 3   #FF69B4
indianred - 3   4 3   #CD5C5C
indigo - 3   4 -   #4B0082
ivory - 3   4 3   #FFFFF0
khaki - 3   4 3   #F0E68C
lavender - 3   4 3   #E6E6FA
lavenderblush - 3   4 3   #FFF0F5
lawngreen - 3   4 3   #7CFC00
lemonchiffon - 3   4 3   #FFFACD
lightblue - 3   4 3   #ADD8E6
lightcoral - 3   4 3   #F08080
lightcyan - 3   4 3   #E0FFFF
lightgoldenrodyellow - 3   4 3   #FAFAD2
lightgreen - 3   4 -   #90EE90
lightgrey - 3   4 -   #D3D3D3
lightpink - 3   4 3   #FFB6C1
lightsalmon - 3   4 3   #FFA07A
lightseagreen - 3   4 3   #20B2AA
lightskyblue - 3   4 3   #87CEFA
lightslategray - 3   4 3   #778899
lightsteelblue - 3   4 3   #B0C4DE
lightyellow - 3   4 3   #FFFFE0
limegreen - 3   4 3   #32CD32
linen - 3   4 3   #FAF0E6
magenta - 3   4 3   #FF00FF
mediumaquamarine - 3   4 3   #66CDAA
mediumblue - 3   4 3   #0000CD
mediumorchid - 3   4 3   #BA55D3
mediumpurple - 3   4 3   #9370DB
mediumseagreen - 3   4 3   #3CB371
mediumslateblue - 3   4 3   #7B68EE
mediumspringgreen - 3   4 3   #00FA9A
mediumturquoise - 3   4 3   #48D1CC
mediumvioletred - 3   4 3   #C71585
midnightblue - 3   4 3   #191970
mintcream - 3   4 3   #F5FFFA
mistyrose - 3   4 3   #FFE4E1
moccasin - 3   4 3   #FFE4B5
navajowhite - 3   4 3   #FFDEAD
oldlace - 3   4 3   #FDF5E6
olivedrab - 3   4 3   #6B8E23
orange - 3   4 3   #FFA500
orangered - 3   4 3   #FF4500
orchid - 3   4 3   #DA70D6
palegoldenrod - 3   4 3   #EEE8AA
palegreen - 3   4 3   #98FB98
paleturquoise - 3   4 3   #AFEEEE
palevioletred - 3   4 3   #DB7093
papayawhip - 3   4 3   #FFEFD5
peachpuff - 3   4 3   #FFDAB9
peru - 3   4 3   #CD853F
pink - 3   4 3   #FFC0CB
plum - 3   4 3   #DDA0DD
powderblue - 3   4 3   #B0E0E6
rosybrown - 3   4 3   #BC8F8F
royalblue - 3   4 3   #4169E1
saddlebrown - 3   4 -   #8B4513
salmon - 3   4 -   #FA8072
sandybrown - 3   4 3   #F4A460
seagreen - 3   4 3   #2E8B57
seashell - 3   4 3   #FFF5EE
sienna - 3   4 3   #A0522D
skyblue - 3   4 3   #87CEEB
slateblue - 3   4 3   #6A5ACD
slategray - 3   4 3   #708090
snow - 3   4 3   #FFFAFA
springgreen - 3   4 3   #00FF7F
steelblue - 3   4 3   #4682B4
tan - 3   4 3   #D2B48C
thistle - 3   4 3   #D8BFD8
tomato - 3   4 3   #FF6347
turquoise - 3   4 3   #40E0D0
violet - 3   4 3   #EE82EE
wheat - 3   4 3   #F5DEB3
whitesmoke - 3   4 -   #F5F5F5
yellowgreen - 3   4 3   #9ACD32
ActiveBorder 2 4   - -   Active window border
ActiveCaption 2 4   - -   Active window caption
AppWorkspace 2 4   - -   Background color of multiple document interface
Background 2 4   - -   Desktop background
ButtonFace 2 4   - -   Face color for 3-D display elements
ButtonHighlight 2 4   - -   Highlight color for 3-D display elements
ButtonShadow 2 4   - -   Shadow color for 3-D display elements
ButtonText 2 4   - -   Text on push buttons
CaptionText 2 4   - -   Text in caption, size box, and scrollbar arrow box
GrayText 2 4   - -   Grayed (disabled) text
Highlight 2 4   - -   Items selected in a control
HighlightText 2 4   - -   Text of items selected in a control
InactiveBorder 2 4   - -   Inactive window border
InactiveCaption 2 4   - -   Inactive window caption
InactiveCaptionText 2 4   - -   Color of text in an inactive window caption
InfoBackground 2 4   - -   Background color for tooltip controls
InfoText 2 4   - -   Text color for tooltip controls
Menu 2 4   - -   Menu background
MenuText 2 4   - -   Text in menus
Scrollbar 2 4   - -   Scroll bar gray area
ThreeDDarkShadow 2 4   - -   Dark shadow for 3-D display elements
ThreeDFace 2 4   - -   Face color for 3-D display elements
ThreeDHighlight 2 4   - -   Highlight color for 3-D display elements
ThreeDLightShadow 2 4   - -   Light color for 3-D display elements
ThreeDShadow 2 4   - -   Dark shadow for 3-D display elements
Window 2 4   - -   Window background
WindowFrame 2 4   - -   Window frame
WindowText 2 4   - -   Text in windows
Angle 2 - - - -  
ndeg 2 - - - -   Degrees
ngrad 2 - - - -   Grads
nrad 2 - - - -   Radians
Time 2 - - - -  
nms 2 - - - -   Milliseconds
ns 2 - - - -   Seconds
Frequency 2 - - - -  
nHz 2 - - - -   Hertz
nkHz 2 - - - -   Kilohertz