HTML..XHTML.The.Definitive.Guide..5th.Ed.1002002 [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

HTML..XHTML.The.Definitive.Guide..5th.Ed.1002002 [Electronic resources] - نسخه متنی

Chuck Musciano, Bill Kennedy

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








G.1 Color Values


In all cases, you may set the color value
for an HTML element, such as <body> text,
<table> background, and so on, as a
six-digit hexadecimal number that represents the red, green, and blue
(RGB) components of the color. The first two digits correspond to the
red component of the color, the next two are the green component, and
the last two are the blue component. A value of 00 corresponds to a
component being completely off; the hexadecimal value of FF (decimal
255) corresponds to the component being completely on. Thus, bright
red is FF0000, bright green is 00FF00, and bright blue is 0000FF.
Other primary colors are mixtures of the components, such as yellow
(FFFF00), magenta (FF00FF), and cyan (00FFFF). White (FFFFFF) and
black (000000) also are easy to figure out.

You use these values in a tag by replacing the color with the RGB
triple, preceded by a pound sign (#). Thus, to
make all visited links display as magenta, use this body tag:

<body vlink="#FF00FF">


/ 189