von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
Netscape führte seinerzeit die websicheren Farben ein. Neben diesen Farbwerten, die einem bestimmten Schema folgen, definierte man noch 120 Werte und ordnete ihnen Namen zu.
Hintergrundfarbe lightyellow | Schriftfarbwert #fffafa | |||||
Detail | : | Hintergrund lightyellow | Detail | : | Schrift #fffafa | |
Farbe | : | lightyellow | Farbwert | : | #fffafa | |
Farbwert | : | #ffffe0 | Farbe | : | snow | |
HTML | : | lightyellow | HTML | : | #fffafa | |
HTML (Wert) | : | #ffffe0 | HTML (Wert) | : | #fffafa | |
CSS | : | lightyellow | CSS | : | #fffafa | |
CSS (Wert) | : | #ffffe0 | CSS (Wert) | : | #fffafa | |
CSS (kürzest) | : | #ffffe0 | CSS (kürzest) | : | #fffafa | |
CSS (RGB) | : | rgb(255,255,224) | CSS (RGB) | : | rgb(255,250,250) | |
CSS (%RGB) | : | rgb(100%,100%,87%) | CSS (%RGB) | : | rgb(100%,98%,98%) |
Verlauf Hintergrundfarbe lightyellow nach Schriftfarbwert #fffafa | |||||||
#ffffe0 | #fffee3 | #fffde7 | #fffceb | #fffcee | #fffbf2 | #fffaf6 | #fffafa |
#ffffe0 | #fffee3 | #fffde7 | #fffceb | #fffcee | #fffbf2 | #fffaf6 | #fffafa |
Kombination von lightyellow und #fffafa | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. | Auf Hintergrund lightyellow ist #fffafa ungeeignet, weil die Unterschiede in der Helligkeit und Farbe zu gering sind. Die Ähnlichkeit von #fffafa und lightyellow beträgt 95.16%. Die Lesbarkeit dieser Kombination bewerte ich mit 4.84%. |
Hintergrundfarbe lightyellow | Schriftfarbwert #fffafa | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ffffe0 | #ffffe0 | #ffffe0 | #ffffe0 | #fffafa | #fffafa | #fffafa | #fffafa |
#ffffe4 | #ffffe4 | #dadac0 | #dadac0 | #fffafa | #fffafa | #dad6d6 | #dad6d6 |
#ffffe8 | #ffffe8 | #b6b6a0 | #b6b6a0 | #fffbfb | #fffbfb | #b6b2b2 | #b6b2b2 |
#ffffed | #ffffed | #919180 | #919180 | #fffcfc | #fffcfc | #918e8e | #918e8e |
#fffff1 | #fffff1 | #6d6d60 | #6d6d60 | #fffcfc | #fffcfc | #6d6b6b | #6d6b6b |
#fffff6 | #fffff6 | #484840 | #484840 | #fffdfd | #fffdfd | #484747 | #484747 |
#fffffa | #fffffa | #242420 | #242420 | #fffefe | #fffefe | #242323 | #242323 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel ändern wir die Textfarbe von <dd> auf Farbwert #fffafa und die Hintergrundfarbe von <dd> auf Farbe lightyellow. Die Schriftart setzen wir auf verdana und als Schriftgröße wählen wir 9pt.
<style type="text/css"><!-- dd { color: #fffafa; font-family: verdana; background-color: lightyellow; font-size: 9pt; } //--> </style>
Mehr zum Thema lesen Sie in Listen und Glossare in HTML. Einzelheiten vom hier verwendeten Befehl dd sind in der HTML Referenz bei <dd> zusammengestellt.