QUESTION I can't seem to find in your book (Creating Cool...) how to use colored text. Am I not paying attention? I saw this in an HTML source:ANSWER<body bgcolor="#000000" text="#00ffff" link="#cccccc" vlink="#e6e6e6" alink="#00a0dd">but I could not make it work in mine.That's a Netscape only addition (though it's migrating into other Web browsers slowly).
The basic gig is that you need to specify a RRGGBB value: red, green, blue, where each is a two-digit hexidecimal number (that is 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F, where F = 15 decimal). The highest value is FF, so if you want pure green, use 00FF00.
These are specified in the BODY tag at the top of your document, and you can specify BGCOLOR for background color, TEXT for regular text, LINK for hypertext links, and VLINK for visited links. You can also have ALINK "anchor links" a different color.
Standard approach is:
<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#0000FF>This would give you black text and blue links on a white background.Note that if you're running Internet Explorer you can also specify colors by name! Try this:
<BODY BGCOLOR=yellow TEXT=purple LINK=blue>For a useful online page that shows you about fifty different colors and their hex equivalent, pop over to Program One's Color to Hex Table. ![]()