|
|||||||||||
|
|||||||||||
| The code for using a color as your page background is:
<body bgcolor="colorname" OR "hexadecimal color value"> In one of our later classes, I will show you how to deal with that scary- sounding thing called "hexadecimal color value." (It is surprisingly simple. The files "clrbrwsr.exe" and "nclrz32.exe" that you see on the class floppy are there for that purpose. Macintosh users can get similar tools here.) But right now, our task is the bgcolor attribute. The file textcolors.txt on your class floppy lists more than one hundred color names. The browser may not recognize some of them. If it does not recognize the color name that you have chosen, the browser will usually ignore the attribute and present an unadorned background. In some cases, when the browser does not recognize the color name that you have used, it will "interpret" that color name and give you a totally unexpected result. Example: "LIGHTBROWN." Solution: pick a different name. The code for the background of the page you are looking at is: <body bgcolor="lightcyan"> |
Play Time!
|