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 antiquewhite | Schriftfarbwert #fffafa | |||||
Detail | : | Hintergrund antiquewhite | Detail | : | Schrift #fffafa | |
Farbe | : | antiquewhite | Farbwert | : | #fffafa | |
Farbwert | : | #faebd7 | Farbe | : | snow | |
HTML | : | antiquewhite | HTML | : | #fffafa | |
HTML (Wert) | : | #faebd7 | HTML (Wert) | : | #fffafa | |
CSS | : | antiquewhite | CSS | : | #fffafa | |
CSS (Wert) | : | #faebd7 | CSS (Wert) | : | #fffafa | |
CSS (kürzest) | : | #faebd7 | CSS (kürzest) | : | #fffafa | |
CSS (RGB) | : | rgb(250,235,215) | CSS (RGB) | : | rgb(255,250,250) | |
CSS (%RGB) | : | rgb(98%,92%,84%) | CSS (%RGB) | : | rgb(100%,98%,98%) |
Verlauf Hintergrundfarbe antiquewhite nach Schriftfarbwert #fffafa | |||||||
#faebd7 | #faeddc | #fbefe1 | #fcf1e6 | #fcf3eb | #fdf5f0 | #fef7f5 | #fffafa |
#faebd7 | #faeddc | #fbefe1 | #fcf1e6 | #fcf3eb | #fdf5f0 | #fef7f5 | #fffafa |
Kombination von antiquewhite und #fffafa | |||||||
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. Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. | Die Ähnlichkeit von #fffafa und antiquewhite ergibt sich zu 94.61%. Die Lesbarkeit dieser Kombination von Farben bewerte ich mit 5.39%. Auf Hintergrund antiquewhite ist #fffafa ungeeignet, da sich sowohl Helligkeit als auch die Farben zu ähnlich sind. |
Hintergrundfarbe antiquewhite | Schriftfarbwert #fffafa | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#faebd7 | #faebd7 | #faebd7 | #faebd7 | #fffafa | #fffafa | #fffafa | #fffafa |
#faeddc | #faeddc | #d6c9b8 | #d6c9b8 | #fffafa | #fffafa | #dad6d6 | #dad6d6 |
#fbf0e2 | #fbf0e2 | #b2a799 | #b2a799 | #fffbfb | #fffbfb | #b6b2b2 | #b6b2b2 |
#fcf3e8 | #fcf3e8 | #8e867a | #8e867a | #fffcfc | #fffcfc | #918e8e | #918e8e |
#fcf6ed | #fcf6ed | #6b645c | #6b645c | #fffcfc | #fffcfc | #6d6b6b | #6d6b6b |
#fdf9f3 | #fdf9f3 | #47433d | #47433d | #fffdfd | #fffdfd | #484747 | #484747 |
#fefcf9 | #fefcf9 | #23211e | #23211e | #fffefe | #fffefe | #242323 | #242323 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier umranden wir <img> mit einem . Den Hintergrund von <img> setzen wir auf Farbe antiquewhite. Mit HTML ist dies nicht machbar. Wir nutzen deshalb CSS zur Formatierung.
<style type="text/css"><!-- img { border:2pt ridge #fffafa; background-color:antiquewhite; } //--> </style>
Weiteres zu img finden Sie in Grafik in HTML. Der hier genutzte Befehl img ist in der HTML Referenz unter <img> gezeigt.
Hier ändern wir die Textfarbe von <q> auf Farbwert #fffafa. Die Schriftart setzen wir auf courier new. Die Schriftgröße setzen wir auf 116%. Wir unterstreichen den Inhalt von <q> mit Hilfe eines herausstehenden Rahmens mit 2 Punkte Dicke in Farbe antiquewhite. In HTML geht dies nicht. Daher formatieren wir hier mit CSS.
<style type="text/css"><!-- q { font-size: 116%; color: #fffafa; font-family: courier new; border-bottom: 2pt outset antiquewhite; } //--> </style>
Die Idee ist, unterschiedliche Formatierungen für Inhalt und Unterstreichung zu haben.
Mehr zum hier verwendeten Befehl q lesen Sie in der HTML Referenz unter <q>.