|
hitmill.com
|
|
|
Page color is achieved using the BODY HTML element and coding the BGCOLOR attribute like this: <BODY BGCOLOR="thistle">
or else by coding a specific RGB Hexadecimal Color value like this: <BODY BGCOLOR="#D8BFD8"> Notice that the "#" pound sign (correctly called an octothorp) preceeds the hexadecimal number. Instead of saying hexadecimal, many people shorten the name to "hex value" or "rgb hex" and it means hexadecimal value. If you are using only the name of a color be sure to use quotes and do not allow spaces. Even if the name normally has a space, when used in HTML code there is no space in a named color. Light Blue becomes "lightblue". Note: Code the background color of a page, even if you are using an image for the background. When the image cannot be viewed on a user's computer for any reason, the background color will show instead. If you do not specify your background Web page color, the color shown will be the default color setting in the user's browser. Finding Hexadecimal Values OnlineWhere do you go to find the values... there are many online references. I use the Hexadecimal Color Values Reference which also has a good color scheme picker tool on the page.
A Word About Hexadecimal Color
RGB refers to the Red, Green, Blue (RGB) format. Each RGB color is also represented by a hexadecimal number that varies from 00 to FF as well as a decimal number from 0 to 255 decimal. There are a total of 256 x 256 x 256 = 16,777,216 possible color combinations. Since 1998, the use of HTML elements and attributes for color has been deprecated in favor of the style sheets, such as the CSS or
Cascading Style Sheets Rules technology for HTML or the XSL which is NOW used for formatting and describing XML documents.
What does a CSS rule look like?The <STYLE> element is coded in the HEAD section of the HTML document.Peek at this code box: How to Manipulate Font Color
The BGCOLOR Attribute of the Table Element
Search Tutorial |
Web Services
Top | News | Travel | Computers Internet | HTML | Dynamic HTML | XML Programming | JavaScript | ASP | Home |