www.RickBull.com > tutorials > HTML > Useful Information
Jump to: Contents | Language Codes | Media Types | Entities | Countries | Colours | Time-Zones | Sever Codes | User-Agent Strings

Colours

Pre-defined Colour Keywords

This section lists the predefined colours that are defined in HTML 4.01. The document used for this section was http://www.w3.org/TR/html401/types.html#h-6.5.

CSS Level 2 System Colours

Cascading Style Sheets level 2 introduced system colours, that are unique to the operating system that the user has. Below are listed the possible values with a description of what they are (courtesy of http://www.w3.org/TR/REC-CSS2/ui.html#system-colors).

ActiveBorder
Active window border.
ActiveCaption
Active window caption.
AppWorkspace
Background color of multiple document interface.
Background
Desktop background.
ButtonFace
Face color for three-dimensional display elements.
ButtonHighlight
Dark shadow for three-dimensional display elements (for edges facing away from the light source).
ButtonShadow
Shadow color for three-dimensional display elements.
ButtonText
Text on push buttons.
CaptionText
Text in caption, size box, and scrollbar arrow box.
GrayText
Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.
Highlight
Item(s) selected in a control.
HighlightText
Text of item(s) selected in a control.
InactiveBorder
Inactive window border.
InactiveCaption
Inactive window caption.
InactiveCaptionText
Color of text in an inactive caption.
InfoBackground
Background color for tooltip controls.
InfoText
Text color for tooltip controls.
Menu
Menu background.
MenuText
Text in menus.
Scrollbar
Scroll bar gray area.
ThreeDDarkShadow
Dark shadow for three-dimensional display elements.
ThreeDFace
Face color for three-dimensional display elements.
ThreeDHighlight
Highlight color for three-dimensional display elements.
ThreeDLightShadow
Light color for three-dimensional display elements (for edges facing the light source).
ThreeDShadow
Dark shadow for three-dimensional display elements.
Window
Window background.
WindowFrame
Window frame.
WindowText
Text in windows.

Web Safe Colours

If you do not have a JavaScript-enabled brower, or would prefer to just see a list of the web-safe colours, you can view the web-safe colours page.


All tutorials and content written by Rick Bull unless otherwise stated
Page's last update: Friday, 15th January 2010; 12:54:15 GMT +0000
Top of the page