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 #8b0000 | Schriftfarbe burlywood | |||||
Detail | : | Hintergrund #8b0000 | Detail | : | Schrift burlywood | |
Farbwert | : | #8b0000 | Farbe | : | burlywood | |
Farbe | : | darkred | Farbwert | : | #deb887 | |
HTML | : | #8b0000 | HTML | : | burlywood | |
HTML (Wert) | : | #8b0000 | HTML (Wert) | : | #deb887 | |
CSS | : | #8b0000 | CSS | : | burlywood | |
CSS (Wert) | : | #8b0000 | CSS (Wert) | : | #deb887 | |
CSS (kürzest) | : | #8b0000 | CSS (kürzest) | : | #deb887 | |
CSS (RGB) | : | rgb(139,0,0) | CSS (RGB) | : | rgb(222,184,135) | |
CSS (%RGB) | : | rgb(54%,0%,0%) | CSS (%RGB) | : | rgb(87%,72%,52%) |
Verlauf Hintergrundfarbwert #8b0000 nach Schriftfarbe burlywood | |||||||
#8b0000 | #961a13 | #a23426 | #ae4e39 | #ba694d | #c68360 | #d29d73 | #deb887 |
#8b0000 | #961a13 | #a23426 | #ae4e39 | #ba694d | #c68360 | #d29d73 | #deb887 |
Kombination von #8b0000 und burlywood | |||||||
Cras id velit ante. 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. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Die Ähnlichkeit von burlywood und #8b0000 beträgt 74.32%. Die Lesbarkeit dieser Farbkombination liegt damit bei 25.68%. Auf Hintergrund #8b0000 ist burlywood ungeeignet, weil der Unterschied in den Farben zu gering ist |
Hintergrundfarbwert #8b0000 | Schriftfarbe burlywood | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#8b0000 | #8b0000 | #8b0000 | #8b0000 | #deb887 | #deb887 | #deb887 | #deb887 |
#9b2424 | #9b2424 | #770000 | #770000 | #e2c298 | #e2c298 | #be9d73 | #be9d73 |
#ac4848 | #ac4848 | #630000 | #630000 | #e7cca9 | #e7cca9 | #9e8360 | #9e8360 |
#bc6d6d | #bc6d6d | #4f0000 | #4f0000 | #ecd6ba | #ecd6ba | #7e694d | #7e694d |
#cd9191 | #cd9191 | #3b0000 | #3b0000 | #f0e0cb | #f0e0cb | #5f4e39 | #5f4e39 |
#ddb6b6 | #ddb6b6 | #270000 | #270000 | #f5eadc | #f5eadc | #3f3426 | #3f3426 |
#eedada | #eedada | #130000 | #130000 | #faf4ed | #faf4ed | #1f1a13 | #1f1a13 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <caption> auf Farbe burlywood. Die Schriftart ändern wir auf arial und vergrößern die Schriftgröße auf 119%. Wir unterstreichen den Inhalt von <caption> mit Hilfe eines gezahnten Rahmens mit 1 Pixel Dicke in Farbwert #8b0000. In HTML geht dies kaum. Deshalb verwenden wir CSS.
<style type="text/css"><!-- caption { font-size: 119%; font-family: arial; color: burlywood; border-bottom: 1px ridge #8b0000; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Mehr zum Thema lesen Sie in Tabellen in HTML. Möglichkeiten des HTML-Befehl <caption>.
Die Textfarbe soll sich von Farbwert #8b0000 auf Farbe burlywood ändern, wenn man mit der Maus auf <code> zeigt. Bereiten wir zunächst die Darstellung von <code> in Farbwert #8b0000 vor.
Als Beispiel legen wir bei <code> die Textfarbe auf Farbwert #8b0000 fest:
<style type="text/css"><!-- code { color:#8b0000; } //--> </style>Jetzt stellen wir ein, dass bei Berührung mit der Maus die Textfarbe auf burlywood geändert wird.
<style type="text/css"><!-- code: hover { color: burlywood; } //--> </style>
Mehr zum Thema können Sie in Text in HTML nachsehen. Möglichkeiten vom hier verwendeten HTML-Befehl <code>.