|
16 Color NamesHTML Color NamesIn addition to using the Browser Safe Colors discussed earlier to specify color, you can also use the 16 color names discussed below: Color names and their hexadecimal values in HTML |
|
black="#000000" |
|
green="#008000" | |
![]() |
gray="#808080" | ![]() |
lime="#00FF00" | |
|
silver="#COCOCO" |
|
olive="#808000" | |
|
white="#FFFFFF" |
|
yellow="#FFFF00" | |
![]() |
red="#FF0000" | ![]() |
navy="#000080" | |
![]() |
maroon="#800000" | ![]() |
blue="#0000FF" | |
![]() |
purple="#800080" | ![]() |
teal="#008080" | |
![]() |
fuchsia="#FF00FF" | ![]() |
aqua="#00FFFF" |
|
For example, the background color for this page can be coded in HTML as: <body bgcolor=white> or by using the hexadecimal value <body bgcolor="#FFFFFF">. In addition to your body bgcolor tag, you can also use color names with font, table, and bgcolor HTML Tags. Most browsers will accept a wider set of color names. But, their use is not recommended by W3C (Colors). Color names are not case sensitive. Color tips:
What will happen if you use depreciated tags? Since literally billions of pages have already been created on the web, it's a sure bet that support for these tags and attributes will remain in the browsers for a long time to come. I'll bet they will never be removed. |
|
If you find this Website useful, donate as little as a $1.00 through the Amazon Honor System to help me keep it free. Paying is fast and easy: just click the Pay now button to begin. Your credit card is secure. Your privacy is protected. |
|
| Search | Map | About this site | Privacy | Glossary | What's new? | |