# Section 41. Set Page Properties

41. Set Page Properties

BEFORE YOU BEGIN

Most things you want to do to a web pagesuch as editing text and adding picturesinvolve working on the page, sort of like painting on a canvas. But what if you want to change the color of the canvas or replace it with velvet so that you can do Elvis or the dogs playing poker? On a web page, there is a split between the content on the page and the attributes of the page itself. With Composer, setting the page attributes is easily done.

KEY TERM

Hexadecimal Hex is a system of numbering with a base of 16 rather than the base 10 with which we are familiar. Without going into too much detail on why computers like base 16 numbers , some explanation is necessary. A hex number looks like "#3366FF". The pound sign indicates to HTML that the following six numbers and letters are to be used as a single set of three two-digit numbers. The first set of two digits is the value for red, the second set is the value for green, and the third set is for blue. Together they tell the computer to display one color made up from red, green, and blue.

In hex, when you run out of the digits 09, instead of going on to 10, you go to a, and then b, c, d, e, and f. Thus, counting in hex is as follows : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. B equals 11 and E equals 14.

The sets of digits go from 00 to FF with 00 equaling zero and FF equaling 256. With 256 colors possible for red, green, and blue each, there are 256 3 colors possible. For those of you who aren't math heads, that is 16,777,216 possible colors.

Sams Teach Yourself Creating Web Pages All in One
ISBN: 0672326906
EAN: 2147483647
Year: 2006
Pages: 276