Technical note: 10022 Created: 07/24/95 by Brian
Version 1.1 of the Netscape Navigator is able to recognize new options to the HTML "<BODY>" tag, which let you specify custom colors for the text and background on your web pages. Full documentation about how to use these new options is available on http://netscape.1command.com/support/net_sites/bg/, and there are several examples of this on "http://www.infi.net/wwwimages/colorindex.html". Basically, the way you specify custom colors is like this:<BODY TEXT="#rrggbb" BGCOLOR="#rrggbb" LINK="#rrggbb" VLINK="#rrggbb" ALINK="#rrggbb"> ... </BODY>whereTEXTis the color of the text on the page (normally black),BGCOLORis the background color (normally grey),LINKis the color of unvisited link text (normally blue),ALINKis the color of link text as you click on it (normally red), andVLINKis the color of visited link text (normally purple). Colors are specified as "#rrggbb", where "rr", "gg", and "bb" are hexadecimal values from00toFFwhich specify how much red, green, and blue is used in your color. "#FFFFFF" is white, "#000000" is black, "#FF0000" is bright red, "#550000" is dark red, "#FF00FF" is bright magenta, and so forth. You can also useBACKGROUND="filename.gif"to specify a GIF or JPEG image which will be used as your background pattern. This image will be tiled across your background; it is not possible to display it non-tiled. Netscape Navigator 1.1 had a bug in it whereby it would acknowledge every "<BODY BGCOLOR=...>" tag (as well as every "<TITLE>" tag) in your HTML file, and would change the background color (or the title) several times if you had several of these tags on your page. This bug has been fixed in Netscape Navigator 1.2, which correctly ignores any "<BODY>" tags in your file past the first one. On "http://www.phoenix.net/~jacobson/rgb.html" is a large number of "color swatches" that demonstrate what the values are for various colors.
Back to: Netscape Navigator Technical Notes