The latest browsers have long since left behind the simple primary color names, like RED, ORANGE, and BLUE. It is now possible to have PUCE, PLUM, TEAL colored text. This is great if you are an artist, but as an engineer, well, I forget what names go with what colors. Until Now!
I have compiled a list of color names and their RGB values. The names.js javascript creates an array of them and displays the color, value and the color by name and value. It allows you to test if your browser displays the names and the correct values the same way.
the colors into 5 columns and make rows until it is finished looping where it closes the table. To call the script, use the following HTML:
<SCRIPT LANGUAGE="javascript1.2" SRC="names.js"></SCRIPT> <NOSCRIPT><P>Your browser does not support Javascript 1.2</P></NOSCRIPT>
Here is the javascript in action: