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 burlywood | Schriftfarbe cornflowerblue | |||||
Detail | : | Hintergrund burlywood | Detail | : | Schrift cornflowerblue | |
Farbe | : | burlywood | Farbe | : | cornflowerblue | |
Farbwert | : | #deb887 | Farbwert | : | #6495ed | |
HTML | : | burlywood | HTML | : | cornflowerblue | |
HTML (Wert) | : | #deb887 | HTML (Wert) | : | #6495ed | |
CSS | : | burlywood | CSS | : | cornflowerblue | |
CSS (Wert) | : | #deb887 | CSS (Wert) | : | #6495ed | |
CSS (kürzest) | : | #deb887 | CSS (kürzest) | : | #6495ed | |
CSS (RGB) | : | rgb(222,184,135) | CSS (RGB) | : | rgb(100,149,237) | |
CSS (%RGB) | : | rgb(87%,72%,52%) | CSS (%RGB) | : | rgb(39%,58%,92%) |
Verlauf Hintergrundfarbe burlywood nach Schriftfarbe cornflowerblue | |||||||
#deb887 | #ccb395 | #bbaea4 | #a9a9b2 | #98a4c1 | #869fcf | #759ade | #6495ed |
#deb887 | #ccb395 | #bbaea4 | #a9a9b2 | #98a4c1 | #869fcf | #759ade | #6495ed |
Kombination von burlywood und cornflowerblue | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Cras id velit ante. | cornflowerblue eignet sich nicht als Schriftfarbe auf Hintergrund burlywood. Sowohl Helligkeit als auch die Farben sind zu ähnlich. Die Ähnlichkeit von cornflowerblue und burlywood ergibt sich zu 92.37%. Die Lesbarkeit dieser Kombination ergibt sich zu 7.63%. |
Hintergrundfarbe burlywood | Schriftfarbe cornflowerblue | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#deb887 | #deb887 | #deb887 | #deb887 | #6495ed | #6495ed | #6495ed | #6495ed |
#e2c298 | #e2c298 | #be9d73 | #be9d73 | #7aa4ef | #7aa4ef | #557fcb | #557fcb |
#e7cca9 | #e7cca9 | #9e8360 | #9e8360 | #90b3f2 | #90b3f2 | #476aa9 | #476aa9 |
#ecd6ba | #ecd6ba | #7e694d | #7e694d | #a6c2f4 | #a6c2f4 | #395587 | #395587 |
#f0e0cb | #f0e0cb | #5f4e39 | #5f4e39 | #bcd1f7 | #bcd1f7 | #2a3f65 | #2a3f65 |
#f5eadc | #f5eadc | #3f3426 | #3f3426 | #d2e0f9 | #d2e0f9 | #1c2a43 | #1c2a43 |
#faf4ed | #faf4ed | #1f1a13 | #1f1a13 | #e8effc | #e8effc | #0e1521 | #0e1521 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Textfarbe soll sich von Farbe burlywood auf Farbe cornflowerblue ändern, wenn man mit der Maus auf <p> zeigt. Bereiten wir zunächst die Darstellung von <p> in Farbe burlywood vor.
Wir setzen als Beispiel die Textfarbe von <p> auf Farbe burlywood:
<style type="text/css"><!-- p { color:burlywood; } //--> </style>Jetzt fordern wir, dass bei Berührung mit der Maus die Textfarbe auf cornflowerblue geändert wird.
<style type="text/css"><!-- p: hover { color: cornflowerblue; } //--> </style>
Weiteres zu p lesen Sie in Grundlegende Gestaltungselemente in HTML. Mehr zum HTML-Tag p ist in der HTML Referenz bei <p> beschrieben.