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 lightcoral | Schriftfarbe burlywood | |||||
Detail | : | Hintergrund lightcoral | Detail | : | Schrift burlywood | |
Farbe | : | lightcoral | Farbe | : | burlywood | |
Farbwert | : | #f08080 | Farbwert | : | #deb887 | |
HTML | : | lightcoral | HTML | : | burlywood | |
HTML (Wert) | : | #f08080 | HTML (Wert) | : | #deb887 | |
CSS | : | lightcoral | CSS | : | burlywood | |
CSS (Wert) | : | #f08080 | CSS (Wert) | : | #deb887 | |
CSS (kürzest) | : | #f08080 | CSS (kürzest) | : | #deb887 | |
CSS (RGB) | : | rgb(240,128,128) | CSS (RGB) | : | rgb(222,184,135) | |
CSS (%RGB) | : | rgb(94%,50%,50%) | CSS (%RGB) | : | rgb(87%,72%,52%) |
Verlauf Hintergrundfarbe lightcoral nach Schriftfarbe burlywood | |||||||
#f08080 | #ed8881 | #ea9082 | #e89883 | #e5a084 | #e3a885 | #e0b086 | #deb887 |
#f08080 | #ed8881 | #ea9082 | #e89883 | #e5a084 | #e3a885 | #e0b086 | #deb887 |
Kombination von lightcoral und burlywood | |||||||
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. | Die Ähnlichkeit der Farben burlywood und lightcoral beträgt 93.35%. Die Lesbarkeit dieser Kombination liegt damit bei 6.65%. burlywood ist nicht als Schriftfarbe auf Hintergrund lightcoral geeignet. Die Unterschiede in der Helligkeit und Farbe sind zu gering. |
Hintergrundfarbe lightcoral | Schriftfarbe burlywood | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#f08080 | #f08080 | #f08080 | #f08080 | #deb887 | #deb887 | #deb887 | #deb887 |
#f29292 | #f29292 | #cd6d6d | #cd6d6d | #e2c298 | #e2c298 | #be9d73 | #be9d73 |
#f4a4a4 | #f4a4a4 | #ab5b5b | #ab5b5b | #e7cca9 | #e7cca9 | #9e8360 | #9e8360 |
#f6b6b6 | #f6b6b6 | #894949 | #894949 | #ecd6ba | #ecd6ba | #7e694d | #7e694d |
#f8c8c8 | #f8c8c8 | #663636 | #663636 | #f0e0cb | #f0e0cb | #5f4e39 | #5f4e39 |
#fadada | #fadada | #442424 | #442424 | #f5eadc | #f5eadc | #3f3426 | #3f3426 |
#fcecec | #fcecec | #221212 | #221212 | #faf4ed | #faf4ed | #1f1a13 | #1f1a13 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Ein Kontainer wird mit HTML-Befehl <div> gesetzt. Er kann farblich gestaltet und hervorgehoben werden.
Hier ändern wir die Textfarbe von <div> auf Farbe burlywood und die Hintergrundfarbe von <div> auf Farbe lightcoral. Die Schriftart setzen wir auf monospace. Als Schriftgröße setzen wir 13px.
<style type="text/css"><!-- div { color: burlywood; font-family: monospace; background-color: lightcoral; font-size: 13px; } //--> </style>
Zur Beschreibung vom HTML-Befehl <div>.
Die Textfarbe soll sich von Farbe lightcoral auf Farbe burlywood ändern, wenn man mit der Maus darauf zeigt. Bereiten wir zunächst eine Formatierung von <blockquote> in Farbe lightcoral vor.
Wir legen für dieses Beispiel die Textfarbe von <blockquote> auf Farbe lightcoral fest und setzen die Schriftgröße auf 13px:
<style type="text/css"><!-- blockquote { color: lightcoral; font-size: 13px; } //--> </style>Nun stellen wir ein, dass sich bei Berührung mit der Maus die Textfarbe auf burlywood ändert.
<style type="text/css"><!-- blockquote:hover { color:burlywood; } //--> </style>
Mehr zum Thema blockquote finden Sie in Blockorientierte Elemente in HTML. Einzelheiten des hier verwendeten Tag <blockquote>.