Основы работы с HTML



Оттенки серого цвета


Серые цвета получаются при равном значении интенсивности всех трех цветов. Чтобы облегчить выбор правильного серого цвета, ниже, в примере, представлена таблица оттенков серого:

<html> <body> <table> <tr><td bgcolor="#000000">&nbsp;</td><td>RGB(0,0,0)</td><td>#000000</td></tr> <tr><td bgcolor="#080808">&nbsp;</td><td>RGB(8,8,8)</td><td>#080808</td></tr> <tr><td bgcolor="#101010">&nbsp;</td><td>RGB(16,16,16)</td><td>#101010</td></tr> <tr><td bgcolor="#181818">&nbsp;</td><td>RGB(24,24,24)</td><td>#181818</td></tr> <tr><td bgcolor="#202020">&nbsp;</td><td>RGB(32,32,32)</td><td>#202020</td></tr> <tr><td bgcolor="#282828">&nbsp;</td><td>RGB(40,40,40)</td><td>#282828</td></tr> <tr><td bgcolor="#303030">&nbsp;</td><td>RGB(48,48,48)</td><td>#303030</td></tr> <tr><td bgcolor="#383838">&nbsp;</td><td>RGB(56,56,56)</td><td>#383838</td></tr> <tr><td bgcolor="#404040">&nbsp;</td><td>RGB(64,64,64)</td><td>#404040</td></tr> <tr><td bgcolor="#484848">&nbsp;</td><td>RGB(72,72,72)</td><td>#484848</td></tr> <tr><td bgcolor="#505050">&nbsp;</td><td>RGB(80,80,80)</td><td>#505050</td></tr> <tr><td bgcolor="#585858">&nbsp;</td><td>RGB(88,88,88)</td><td>#585858</td></tr> <tr><td bgcolor="#606060">&nbsp;</td><td>RGB(96,96,96)</td><td>#606060</td></tr> <tr><td bgcolor="#686868">&nbsp;</td><td>RGB(104,104,104)</td><td>#686868</td></tr> <tr><td bgcolor="#707070">&nbsp;</td><td>RGB(112,112,112)</td><td>#707070</td></tr> <tr><td bgcolor="#787878">&nbsp;</td><td>RGB(120,120,120)</td><td>#787878</td></tr> <tr><td bgcolor="#808080">&nbsp;</td><td>RGB(128,128,128)</td><td>#808080</td></tr> <tr><td bgcolor="#888888">&nbsp;</td><td>RGB(136,136,136)</td><td>#888888</td></tr> <tr><td bgcolor="#909090">&nbsp;</td><td>RGB(144,144,144)</td><td>#909090</td></tr> <tr><td bgcolor="#989898">&nbsp;</td><td>RGB(152,152,152)</td><td>#989898</td></tr> <tr><td bgcolor="#A0A0A0">&nbsp;</td><td>RGB(160,160,160)</td><td>#A0A0A0</td></tr> <tr><td bgcolor="#A8A8A8">&nbsp;</td><td>RGB(168,168,168)</td><td>#A8A8A8</td></tr> <tr><td bgcolor="#B0B0B0">&nbsp;</td><td>RGB(176,176,176)</td><td>#B0B0B0</td></tr> <tr><td bgcolor="#B8B8B8">&nbsp;</td><td>RGB(184,184,184)</td><td>#B8B8B8</td></tr> <tr><td bgcolor="#C0C0C0">&nbsp;</td><td>RGB(192,192,192)</td><td>#C0C0C0</td></tr> <tr><td bgcolor="#C8C8C8">&nbsp;</td><td>RGB(200,200,200)</td><td>#C8C8C8</td></tr> <tr><td bgcolor="#D0D0D0">&nbsp;</td><td>RGB(208,208,208)</td><td>#D0D0D0</td></tr> <tr><td bgcolor="#D8D8D8">&nbsp;</td><td>RGB(216,216,216)</td><td>#D8D8D8</td></tr> <tr><td bgcolor="#E0E0E0">&nbsp;</td><td>RGB(224,224,224)</td><td>#E0E0E0</td></tr> <tr><td bgcolor="#E8E8E8">&nbsp;</td><td>RGB(232,232,232)</td><td>#E8E8E8</td></tr> <tr><td bgcolor="#F0F0F0">&nbsp;</td><td>RGB(240,240,240)</td><td>#F0F0F0</td></tr> <tr><td bgcolor="#F8F8F8">&nbsp;</td><td>RGB(248,248,248)</td><td>#F8F8F8</td></tr> <tr><td bgcolor="#FFFFFF">&nbsp;</td><td>RGB(255,255,255)</td><td>#FFFFFF</td></tr> </table> </body> </html>

Пример выполнения данного HTML-кода




Содержание  Назад  Вперед