(How To) Specifying Colors Within A WebPage™ |
---|
If you would like to specify colors within any web page, you must set Color Attributes. Attributes determine the appearance of a web page, such as background color, text colors and fonts. To specify a specific color, you must use the hexadecimal color code within your HTML coding. The hexadecimal color codes can be used throughout the entire web page to specify all of the following:
To ensure your colors will be displayed to most Internet users as you had intended, you should always select your colors from the 216 web safe colors, as displayed in the 216 web safe color chart below. When using colors within your HTML, you can also use the actual color "word" for basic colors such as black, white, red, green, blue and yellow. Your color code might look something like this: BGCOLOR="RED"
To specify the background and text color of a web page, place the following color attributes, indicated in bold, within the <BODY> tag of your web page: <BODY BGCOLOR="#FF0000" TEXT="#0000FF"> To specify link colors within a web page, place the following color attributes, indicated in bold, within the BODY tag of your web page: <BODY LINK="#003399" VLINK="#0000CC" ALINK="#9966CC"> To specify the border color within an HTML table, place the following code within your TABLE code: <TABLE align="center" style="border: 2px solid rgb(204,204,204);">
To specify the background color within a specific TABLE cell, place the following code, indicated in bold, within your TABLE code: <TD style="border: 2px solid rgb(204,204,204);">Your Cell Text</TD>
Edit the hexadecimal color codes indicated in red to suit your needs. Although you can change the background color of your web page, it is highly recommended that you use the default background color of white and the default text color of black, as this is the easiest color options to read within a web browser. In addition, it is highly recommended that you use the default link colors within your web pages, as these colors are what your visitors will be expecting. Changing the link colors may cause confusion. Each color displayed within the color chart below contains the hexadecimal values and the RGB (Red, Green, Blue) Values. Select a color and copy & paste the hexadecimal value into your HTML document. Example: Hexadecimal Value - #FFFFFF RGB Color Code - R=255 G=255 B=255HTML 5 Update - Please Note with HTML 5 now enabled a fourth decimal code has been added to the list of the hexidecimal list. This is referred to as Alpha / Opacity (ex.rgba(0,0,0,1)). Below is the list of Opacity levels
|
216 Web Safe Color Chart | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
If you have any further questions about this topic | |||
© This blog is subject to change at any given time © This blog does have a copyright notice and cannot be copied unless given permission by its owner | |||
|