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 thistle | Schriftfarbe royalblue | |||||
Detail | : | Hintergrund thistle | Detail | : | Schrift royalblue | |
Farbe | : | thistle | Farbe | : | royalblue | |
Farbwert | : | #d8bfd8 | Farbwert | : | #4169e1 | |
HTML | : | thistle | HTML | : | royalblue | |
HTML (Wert) | : | #d8bfd8 | HTML (Wert) | : | #4169e1 | |
CSS | : | thistle | CSS | : | royalblue | |
CSS (Wert) | : | #d8bfd8 | CSS (Wert) | : | #4169e1 | |
CSS (kürzest) | : | #d8bfd8 | CSS (kürzest) | : | #4169e1 | |
CSS (RGB) | : | rgb(216,191,216) | CSS (RGB) | : | rgb(65,105,225) | |
CSS (%RGB) | : | rgb(84%,74%,84%) | CSS (%RGB) | : | rgb(25%,41%,88%) |
Verlauf Hintergrundfarbe thistle nach Schriftfarbe royalblue | |||||||
#d8bfd8 | #c2b2d9 | #aca6da | #979adb | #818ddd | #6c81de | #5675df | #4169e1 |
#d8bfd8 | #c2b2d9 | #aca6da | #979adb | #818ddd | #6c81de | #5675df | #4169e1 |
Kombination von thistle und royalblue | |||||||
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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. | royalblue eignet sich nicht als Schriftfarbe auf Hintergrund thistle. Die Unterschiede in der Helligkeit und Farbe sind nicht ausreichend. Die Ähnlichkeit von royalblue und thistle beträgt 86.41%. Die Lesbarkeit dieser Kombination von Farben ergibt sich zu 13.59%. |
Hintergrundfarbe thistle | Schriftfarbe royalblue | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#d8bfd8 | #d8bfd8 | #d8bfd8 | #d8bfd8 | #4169e1 | #4169e1 | #4169e1 | #4169e1 |
#ddc8dd | #ddc8dd | #b9a3b9 | #b9a3b9 | #5c7ee5 | #5c7ee5 | #375ac0 | #375ac0 |
#e3d1e3 | #e3d1e3 | #9a889a | #9a889a | #7793e9 | #7793e9 | #2e4ba0 | #2e4ba0 |
#e8dae8 | #e8dae8 | #7b6d7b | #7b6d7b | #92a9ed | #92a9ed | #253c80 | #253c80 |
#eee3ee | #eee3ee | #5c515c | #5c515c | #adbef2 | #adbef2 | #1b2d60 | #1b2d60 |
#f3ecf3 | #f3ecf3 | #3d363d | #3d363d | #c8d4f6 | #c8d4f6 | #121e40 | #121e40 |
#f9f5f9 | #f9f5f9 | #1e1b1e | #1e1b1e | #e3e9fa | #e3e9fa | #090f20 | #090f20 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Für dieses Beispiel ändern wir die Textfarbe von <strong> auf Farbe royalblue und lassen die Hintergrundfarbe unverändert. Die Schriftart setzen wir auf arial. Die Schriftgröße ändern wir auf 9pt. Wir unterstreichen den Inhalt von <strong> mit Hilfe eines doppelten Rahmens mit 2 Pixel Dicke in Farbe thistle. Mit HTML geht dies kaum. Wir nutzen daher CSS zur Formatierung.
<style type="text/css"><!-- strong { color: royalblue; border-bottom-color: thistle; font-size: 9pt; border-bottom-width: 2px; font-family: arial; border-bottom-style: double; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Weiteres zu strong können Sie in Text in HTML finden. Einzelheiten des hier gezeigten HTML-Befehl strong erfahren Sie in der HTML Referenz unter <strong>.