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.
Hintergrundfarbwert #87cefa | Schriftfarbe azure | |||||
Detail | : | Hintergrund #87cefa | Detail | : | Schrift azure | |
Farbwert | : | #87cefa | Farbe | : | azure | |
Farbe | : | lightskyblue | Farbwert | : | #f0ffff | |
HTML | : | #87cefa | HTML | : | azure | |
HTML (Wert) | : | #87cefa | HTML (Wert) | : | #f0ffff | |
CSS | : | #87cefa | CSS | : | azure | |
CSS (Wert) | : | #87cefa | CSS (Wert) | : | #f0ffff | |
CSS (kürzest) | : | #87cefa | CSS (kürzest) | : | #f0ffff | |
CSS (RGB) | : | rgb(135,206,250) | CSS (RGB) | : | rgb(240,255,255) | |
CSS (%RGB) | : | rgb(52%,80%,98%) | CSS (%RGB) | : | rgb(94%,100%,100%) |
Verlauf Hintergrundfarbwert #87cefa nach Schriftfarbe azure | |||||||
#87cefa | #96d5fa | #a5dcfb | #b4e3fc | #c3eafc | #d2f1fd | #e1f8fe | #f0ffff |
#87cefa | #96d5fa | #a5dcfb | #b4e3fc | #c3eafc | #d2f1fd | #e1f8fe | #f0ffff |
Kombination von #87cefa und azure | |||||||
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 vestibulum tristique erat, ac interdum justo cursus in. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. | Die Ähnlichkeit von azure und #87cefa beträgt 92.04%. Die Lesbarkeit dieser Kombination ergibt sich zu 7.96%. azure eignet sich nicht als Schriftfarbe auf Hintergrund #87cefa. Sowohl Helligkeit als auch die Farben sind zu ähnlich. |
Hintergrundfarbwert #87cefa | Schriftfarbe azure | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#87cefa | #87cefa | #87cefa | #87cefa | #f0ffff | #f0ffff | #f0ffff | #f0ffff |
#98d5fa | #98d5fa | #73b0d6 | #73b0d6 | #f2ffff | #f2ffff | #cddada | #cddada |
#a9dcfb | #a9dcfb | #6093b2 | #6093b2 | #f4ffff | #f4ffff | #abb6b6 | #abb6b6 |
#bae3fc | #bae3fc | #4d758e | #4d758e | #f6ffff | #f6ffff | #899191 | #899191 |
#cbeafc | #cbeafc | #39586b | #39586b | #f8ffff | #f8ffff | #666d6d | #666d6d |
#dcf1fd | #dcf1fd | #263a47 | #263a47 | #faffff | #faffff | #444848 | #444848 |
#edf8fe | #edf8fe | #131d23 | #131d23 | #fcffff | #fcffff | #222424 | #222424 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel ändern wir die Textfarbe von <caption> auf Farbe azure und lassen die Hintergrundfarbe unverändert. Die Schriftart ändern wir auf courier new. Die Schriftgröße setzen wir auf 127%. Wir unterstreichen den Inhalt von <caption> mit Hilfe eines doppelten Rahmens mit 4 Pixel Dicke in Farbwert #87cefa. Mit HTML geht dies kaum. Daher formatieren wir mit CSS.
<style type="text/css"><!-- caption { font-family: courier new; border-bottom: 4px double #87cefa; font-size: 127%; color: azure; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zum Thema caption erfahren Sie in Tabellen in HTML. Weiteres zum hier genutzten HTML-Tag <caption>.