Колеры HTML: Розніца паміж версіямі
[недагледжаная версія] | [недагледжаная версія] |
Змесціва выдалена Змесціва дададзена
др вырашэнне неадназначнасцяў using AWB (7794) |
др афармленне |
||
Радок 1:
{{Глыбіня колеру}}
{{HTML}}
Існуюць некалькі асноўных спосабаў падання колераў у Сеціве.▼
# У выглядзе #123ABC. Паданне ў выглядзе 6 шаснаццатковых лічбаў, кожныя 2 з якіх адказваюць за свой колер, 12 — [[чырвоны колер|чырвоны]], 3А — [[зялёны колер|зялёны]], ВС — [[сіні колер|сіні]]. Магчыма таксама кароткае паданне колеру ў выглядзе #ABC, што будзе інтэрпрэтавана як #AABBCC.▼
# Паданне ключавымі словамі, напрыклад ''green'', ''black''. Каб пазбегнуць выпадкаў «неразумення» [[браўзар]]амі ключавых слоў для абазначэння колераў, варта выкарыстаоўваць толькі невялікі набор асноўных колераў, якія ўсе браўзары могуць правільна інтэрпрэтаваць.▼
▲# У выглядзе #123ABC.
# У выглядзе rgb(*,*,*), дзе «*» — лікі ад 0 да 255, якія абазначаюць колькасць адпаведнага колеру (чырвоны, зялёны, сіні) у выніковым.▼
▲#
▲# У выглядзе rgb(*,*,*), дзе «*»
== Назвы колераў у HTML ==
У спецыфікацыі [[HTML]] 4.01
{| border=1
!Колер
!Код
!Колер
Радок 57 ⟶ 58:
|style="background:#ffff00; color:#000000; font-family:monospace;"|#ffff00
|}
<small>У спецыфікацыі выкарыстоўваюцца англійскія
<!-- These 16 were also specified as sRGB and included in the HTML 3.0 specification which noted
It should be mentioned that all color values from #000000
==
<!-- In addition, a number of colors are defined by [[web browser]]s. A particular browser may not recognize all of these colors, but as of [[2005]] all modern general-use browsers support the full list. Many of these colors are from the list of [[X11 color names]] distributed with the [[X Window System]]. These colors were standardized by [[Scalable Vector Graphics|SVG 1.0]], and are accepted by [[Scalable Vector Graphics|SVG Full]] user agents. They are not part of [[Scalable Vector Graphics|SVG Tiny]].
Радок 71 ⟶ 72:
The list of colors actually shipped with the X11 product varies between implementations, and clashes with certain of the HTML names such as green. Furthermore, X11 colors are defined as simple RGB (hence, no particular color), rather than sRGB. This means that the list of colors found in X11 (e.g. in /usr/lib/X11/rgb.txt) should not directly be used to choose colors for the web.<ref>[http://lists.w3.org/Archives/Public/www-svg/2002Apr/0052.html Public discussion on SVG mailing list ''Re: color names in SVG-1.0 conflict with /usr/lib/X11/rgb.txt'']</ref>
The list of web
is shown below, compare the alphabetical lists in the W3C standards.
<ref>[http://www.w3.org/TR/css3-color#svg-color W3C TR CSS3 Color Module, SVG color keywords]</ref> <ref>[http://www.w3.org/TR/SVG/types.html#ColorKeywords W3C TR SVG 1.0, recognized color keyword names]</ref>-->
{| style="font-size:90%;" cellpadding="4"
|- valign="top"
Радок 84 ⟶ 85:
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Чырвоныя'''</big>
|- style="background:indianred; color:white"
|IndianRed
|- style="background:lightcoral; color:black;"
|LightCoral ||F0 80 80||240 128 128
|- style="background:salmon; color:black;"
|Salmon
|- style="background:darksalmon; color:black;"
|DarkSalmon
|- style="background:lightsalmon; color:black;"
|LightSalmon
|- style="background:crimson; color:white; color:white;"
|Crimson
|- style="background:red; color:white;"
|Red
|- style="background:firebrick; color:white;"
|FireBrick
|- style="background:darkred; color:white;"
|DarkRed
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Ружовыя'''</big>
|- style="background:pink; color:black;"
|Pink
|- style="background:lightpink; color:black;"
|LightPink
|- style="background:hotpink; color:white;"
|HotPink
|- style="background:deeppink; color:white;"
|DeepPink
|- style="background:mediumvioletred; color:white;"
|MediumVioletRed||C7 15 85||199
|- style="background:palevioletred; color:white;"
|PaleVioletRed
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Аранжавыя'''</big>
|- style="background:lightsalmon; color:black;"
||LightSalmon
|- style="background:coral; color:white;"
|Coral
|- style="background:tomato; color:white;"
|Tomato
|- style="background:orangered; color:white;"
|OrangeRed
|- style="background:darkorange; color:white;"
|DarkOrange
|- style="background:orange; color:white;"
|Orange
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Жоўтыя'''</big>
|- style="background:gold; color:black;"
|Gold
|- style="background:yellow; color:black;"
|Yellow
|- style="background:lightyellow; color:black;"
|LightYellow
|- style="background:lemonchiffon; color:black;"
|LemonChiffon
|- style="background:lightgoldenrodyellow; color:black;"
|LightGoldenrodYellow||FA FA D2||250 250 210
|- style="background:papayawhip; color:black;"
|PapayaWhip
|- style="background:moccasin; color:black;"
|Moccasin
|- style="background:peachpuff; color:black;"
|PeachPuff
|- style="background:palegoldenrod; color:black;"
|PaleGoldenrod
|- style="background:khaki; color:black;"
|Khaki
|- style="background:darkkhaki; color:white;"
|DarkKhaki
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Бэзавыя'''</big>
|- style="background:lavender; color:black;"
|Lavender
|- style="background:thistle; color:white;"
|Thistle ||D8 BF D8||216 191 216
|- style="background:plum; color:white;"
|Plum
|- style="background:violet; color:white;"
|Violet
|- style="background:orchid; color:white;"
|Orchid
|- style="background:fuchsia; color:white;"
|Fuchsia
|- style="background:magenta; color:white;"
|Magenta||FF 00 FF||255
|- style="background:mediumorchid; color:white;"
|MediumOrchid
|- style="background:mediumpurple; color:white;"
|MediumPurple
|- style="background:blueviolet; color:white;"
|BlueViolet
|- style="background:darkviolet; color:white;"
|DarkViolet
|- style="background:darkorchid; color:white;"
|DarkOrchid
|- style="background:darkmagenta; color:white;"
|DarkMagenta
|- style="background:purple; color:white;"
|Purple
|- style="background:indigo; color:white;"
|Indigo
|- style="background:slateblue; color:white;"
|SlateBlue
|- style="background:darkslateblue; color:white;"
|DarkSlateBlue
|-
|}
Радок 199 ⟶ 200:
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Зялёныя'''</big>
|- style="background:greenyellow; color:black;"
|GreenYellow
|- style="background:chartreuse; color:black;"
|Chartreuse
|- style="background:lawngreen; color:black;"
|LawnGreen
|- style="background:lime; color:black;"
|Lime
|- style="background:limegreen; color:black;"
|LimeGreen
|- style="background:palegreen; color:black;"
|PaleGreen
|- style="background:lightgreen; color:black;"
|LightGreen
|- style="background:mediumspringgreen; color:black;"
|MediumSpringGreen||00 FA 9A|| 0 250 154
|- style="background:springgreen; color:black;"
|SpringGreen
|- style="background:mediumseagreen; color:white;"
|MediumSeaGreen ||3C B3 71|| 60 179 113
|- style="background:seagreen; color:white;"
|SeaGreen
|- style="background:forestgreen; color:white;"
|ForestGreen
|- style="background:green; color:white;"
|Green
|- style="background:darkgreen; color:white;"
|DarkGreen
|- style="background:yellowgreen; color:white;"
|YellowGreen
|- style="background:olivedrab; color:white;"
|OliveDrab
|- style="background:olive; color:white;"
|Olive
|- style="background:darkolivegreen; color:white;"
|DarkOliveGreen ||55 6B 2F|| 85 107
|- style="background:mediumaquamarine; color:black;"
|MediumAquamarine||66 CD AA||102 205 170
|- style="background:darkseagreen; color:white;"
|DarkSeaGreen
|- style="background:lightseagreen; color:white;"
|LightSeaGreen
|- style="background:darkcyan; color:white;"
|DarkCyan
|- style="background:teal; color:white;"
|Teal
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Сінія'''</big>
|- style="background:aqua; color:black;"
|Aqua
|- style="background:cyan; color:black;"
|Cyan
|- style="background:lightcyan; color:black;"
|LightCyan
|- style="background:paleturquoise; color:black;"
|PaleTurquoise
|- style="background:aquamarine; color:black;"
|Aquamarine
|- style="background:turquoise; color:black;"
|Turquoise
|- style="background:mediumturquoise; color:white;"
|MediumTurquoise ||48 D1 CC|| 72 209 204
|- style="background:darkturquoise; color:white;"
|DarkTurquoise||00 CE D1|| 0 206 209
|- style="background:cadetblue; color:white;"
|CadetBlue
|- style="background:steelblue; color:white;"
|SteelBlue
|- style="background:lightsteelblue; color:black;"
|LightSteelBlue ||B0 C4 DE||176 196 222
|- style="background:powderblue; color:black;"
|PowderBlue
|- style="background:lightblue; color:black;"
|LightBlue
|- style="background:skyblue; color:black;"
|SkyBlue
|- style="background:lightskyblue; color:black;"
|LightSkyBlue||87 CE FA||135 206 250
|- style="background:deepskyblue; color:white;"
|DeepSkyBlue
|- style="background:dodgerblue; color:white;"
|DodgerBlue
|- style="background:cornflowerblue; color:white;"
|CornflowerBlue||64 95 ED||100 149 237
|- style="background:mediumslateblue; color:white;"
|MediumSlateBlue||7B 68 EE||123 104 238
|- style="background:royalblue; color:white;"
|RoyalBlue
|- style="background:blue; color:white;"
|Blue
|- style="background:mediumblue; color:white;"
|MediumBlue
|- style="background:darkblue; color:white;"
|DarkBlue
|- style="background:navy; color:white;"
|Navy
|- style="background:midnightblue; color:white;"
|MidnightBlue
|-
|}
Радок 306 ⟶ 307:
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Карычневыя'''</big>
|- style="background:cornsilk; color:black;"
|Cornsilk
|- style="background:blanchedalmond; color:black;"
|BlanchedAlmond ||FF EB CD||255 235 205
|- style="background:bisque; color:black;"
|Bisque
|- style="background:navajowhite; color:black;"
|NavajoWhite
|- style="background:wheat; color:black;"
|Wheat
|- style="background:burlywood; color:white;"
|BurlyWood
|- style="background:tan; color:white;"
|Tan
|- style="background:rosybrown; color:white;"
|RosyBrown
|- style="background:sandybrown; color:white;"
|SandyBrown
|- style="background:goldenrod; color:white;"
|Goldenrod
|- style="background:darkgoldenrod; color:white;"
|DarkGoldenrod
|- style="background:peru; color:white;"
|Peru
|- style="background:chocolate; color:white;"
|Chocolate
|- style="background:saddlebrown; color:white;"
|SaddleBrown
|- style="background:sienna; color:white;"
|Sienna
|- style="background:brown; color:white;"
|Brown
|- style="background:maroon; color:white;"
|Maroon
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Белыя'''</big>
|- style="background:white; color:black;"
|White
|- style="background:snow; color:black;"
|Snow
|- style="background:honeydew; color:black;"
|Honeydew
|- style="background:mintcream; color:black;"
|MintCream
|- style="background:azure; color:black;"
|Azure
|- style="background:aliceblue; color:black;"
|AliceBlue
|- style="background:ghostwhite; color:black;"
|GhostWhite
|- style="background:whitesmoke; color:black;"
|WhiteSmoke
|- style="background:seashell; color:black;"
|Seashell
|- style="background:beige; color:black;"
|Beige
|- style="background:oldlace; color:black;"
|OldLace
|- style="background:floralwhite; color:black;"
|FloralWhite
|- style="background:ivory; color:black;"
|Ivory
|- style="background:antiquewhite; color:black;"
|AntiqueWhite
|- style="background:linen; color:black;"
|Linen
|- style="background:lavenderblush; color:black;"
|LavenderBlush
|- style="background:mistyrose; color:black;"
|MistyRose
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Шэрыя'''</big>
|- style="background:gainsboro; color:black;"
|Gainsboro
|- style="background:lightgrey; color:black;"
|LightGrey
|- style="background:silver; color:black;"
|Silver
|- style="background:darkgray; color:black;"
|DarkGray
|- style="background:gray; color:white;"
|Gray
|- style="background:dimgray; color:white;"
|DimGray
|- style="background:lightslategray; color:white;"
|LightSlateGray ||77 88 99||119 136 153
|- style="background:slategray; color:white;"
|SlateGray
|- style="background:darkslategray; color:white;"
|DarkSlateGray
|- style="background:black; color:white;"
|Black
|}
|}
Радок 402 ⟶ 403:
{{зноскі}}
== Спасылкі ==
Спіс колераў, якія правільна адлюстроўваюцца браўзарамі:
# Рускамоўны рэсурс
# Англійскамоўны рэсурс
# HTML Color Spectrum Chart
[[Катэгорыя:Колер]]
[[Катэгорыя:Інтэрнэт]]
{{compu-stub}}
|