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, einem bestimmten Schema folgenden, Farbwerten, definierte man noch 120 Werte und ordnete ihnen Namen zu. Zusammen mit den 17 Standard-HTML-Farben, die ebenfalls Namen haben, ergeben sich so 137 HTML Farbnamen.
Hintergrundfarbe aliceblue | Schriftfarbe olive | |||||
Detail | : | Hintergrund aliceblue | Detail | : | Schrift olive | |
Farbe | : | aliceblue | Farbe | : | olive | |
Farbwert | : | #f0f8ff | Farbwert | : | #808000 | |
HTML | : | aliceblue | HTML | : | olive | |
HTML (Wert) | : | #f0f8ff | HTML (Wert) | : | #808000 | |
CSS | : | aliceblue | CSS | : | olive | |
CSS (Wert) | : | #f0f8ff | CSS (Wert) | : | #808000 | |
CSS (kürzest) | : | #f0f8ff | CSS (kürzest) | : | #808000 | |
CSS (RGB) | : | rgb(240,248,255) | CSS (RGB) | : | rgb(128,128,0) | |
CSS (%RGB) | : | rgb(94%,97%,100%) | CSS (%RGB) | : | rgb(50%,50%,0%) |
Verlauf Hintergrundfarbe aliceblue nach Schriftfarbe olive | |||||||
#f0f8ff | #e0e6da | #d0d5b6 | #c0c491 | #b0b36d | #a0a248 | #909124 | #808000 |
#f0f8ff | #e0e6da | #d0d5b6 | #c0c491 | #b0b36d | #a0a248 | #909124 | #808000 |
Kombination von aliceblue und olive | |||||||
Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras id velit ante. Cras vestibulum tristique erat, ac interdum justo cursus in. | Auf Hintergrund aliceblue ist olive ungeeignet, da sich die Farben zu ähnlich sind. Die Ähnlichkeit von olive und aliceblue ergibt sich zu 81.38%. Die Lesbarkeit dieser Kombination bewerte ich mit 18.62%. |
Hintergrundfarbe aliceblue | Schriftfarbe olive | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#f0f8ff | #f0f8ff | #f0f8ff | #f0f8ff | #808000 | #808000 | #808000 | #808000 |
#f2f9ff | #f2f9ff | #cdd4da | #cdd4da | #929224 | #929224 | #6d6d00 | #6d6d00 |
#f4faff | #f4faff | #abb1b6 | #abb1b6 | #a4a448 | #a4a448 | #5b5b00 | #5b5b00 |
#f6fbff | #f6fbff | #898d91 | #898d91 | #b6b66d | #b6b66d | #494900 | #494900 |
#f8fcff | #f8fcff | #666a6d | #666a6d | #c8c891 | #c8c891 | #363600 | #363600 |
#fafdff | #fafdff | #444648 | #444648 | #dadab6 | #dadab6 | #242400 | #242400 |
#fcfeff | #fcfeff | #222324 | #222324 | #ececda | #ececda | #121200 | #121200 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Hier ändern wir die Textfarbe von <s> auf Farbe olive und die Hintergrundfarbe von <s> auf Farbe aliceblue. Die Schriftart setzen wir auf arial und ändern die Schriftgröße auf 13px.
<style type="text/css"><!-- s { color:olive; font-family:arial; background-color:aliceblue; font-size:13px; } //--> </style>
Weiteres zum Thema s erfahren Sie in Text in HTML. Mehr zum Tag s ist in der HTML Referenz bei <s> zusammengestellt.