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 cornflowerblue | Schriftfarbe mintcream | |||||
Detail | : | Hintergrund cornflowerblue | Detail | : | Schrift mintcream | |
Farbe | : | cornflowerblue | Farbe | : | mintcream | |
Farbwert | : | #6495ed | Farbwert | : | #f5fffa | |
HTML | : | cornflowerblue | HTML | : | mintcream | |
HTML (Wert) | : | #6495ed | HTML (Wert) | : | #f5fffa | |
CSS | : | cornflowerblue | CSS | : | mintcream | |
CSS (Wert) | : | #6495ed | CSS (Wert) | : | #f5fffa | |
CSS (kürzest) | : | #6495ed | CSS (kürzest) | : | #f5fffa | |
CSS (RGB) | : | rgb(100,149,237) | CSS (RGB) | : | rgb(245,255,250) | |
CSS (%RGB) | : | rgb(39%,58%,92%) | CSS (%RGB) | : | rgb(96%,100%,98%) |
Verlauf Hintergrundfarbe cornflowerblue nach Schriftfarbe mintcream | |||||||
#6495ed | #78a4ee | #8db3f0 | #a2c2f2 | #b6d1f4 | #cbe0f6 | #e0eff8 | #f5fffa |
#6495ed | #78a4ee | #8db3f0 | #a2c2f2 | #b6d1f4 | #cbe0f6 | #e0eff8 | #f5fffa |
Kombination von cornflowerblue und mintcream | |||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras vestibulum tristique erat, ac interdum justo cursus in. | mintcream eignet sich nicht als Schriftfarbe auf Hintergrund cornflowerblue. Die Helligkeit und Farben sind sich zu ähnlich. Die Ähnlichkeit der Farben mintcream und cornflowerblue ergibt sich zu 86.14%. Die Lesbarkeit dieser Kombination ergibt sich zu 13.86%. |
Hintergrundfarbe cornflowerblue | Schriftfarbe mintcream | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#6495ed | #6495ed | #6495ed | #6495ed | #f5fffa | #f5fffa | #f5fffa | #f5fffa |
#7aa4ef | #7aa4ef | #557fcb | #557fcb | #f6fffa | #f6fffa | #d2dad6 | #d2dad6 |
#90b3f2 | #90b3f2 | #476aa9 | #476aa9 | #f7fffb | #f7fffb | #afb6b2 | #afb6b2 |
#a6c2f4 | #a6c2f4 | #395587 | #395587 | #f9fffc | #f9fffc | #8c918e | #8c918e |
#bcd1f7 | #bcd1f7 | #2a3f65 | #2a3f65 | #fafffc | #fafffc | #696d6b | #696d6b |
#d2e0f9 | #d2e0f9 | #1c2a43 | #1c2a43 | #fcfffd | #fcfffd | #464847 | #464847 |
#e8effc | #e8effc | #0e1521 | #0e1521 | #fdfffe | #fdfffe | #232423 | #232423 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbe cornflowerblue auf Farbe mintcream ändern, wenn man mit der Maus auf <dt> zeigt. Bereiten wir zunächst die Darstellung von <dt> in Farbe cornflowerblue vor.
Wir ändern für dieses Beispiel bei <dt> die Textfarbe auf Farbe cornflowerblue und ändern die Schriftgröße auf 12px.
<style type="text/css"><!-- dt { color:cornflowerblue; font-size:12px; } //--> </style>Nun fordern wir, dass sich bei Berührung mit der Maus die Textfarbe auf mintcream ändert.
<style type="text/css"><!-- dt:hover { color:mintcream; } //--> </style>
Weiteres zu dt finden Sie in Listen und Glossare in HTML. Weiteres zum Tag <dt>.