von Thomas Salvador.
Farben werden in HTML entweder mit ihrem Namen oder mit ihrem Wert beschrieben.
HTML verfügt seit jeher über 17 Standard Farbnamen.
Sie entstehen dadurch, dass die 8 Grundfarben jeweils maximal und zu 50% enthalten sind.
Zu diesen 16 Farben kommt mit grey eine alternative Schreibweise für gray.
Hintergrundfarbwert #ffffff | Schriftfarbe olive | |||||
Detail | : | Hintergrund #ffffff | Detail | : | Schrift olive | |
Farbwert | : | #ffffff | Farbe | : | olive | |
Farbe | : | white | Farbwert | : | #808000 | |
HTML | : | #ffffff | HTML | : | olive | |
HTML (Wert) | : | #ffffff | HTML (Wert) | : | #808000 | |
CSS | : | #ffffff | CSS | : | olive | |
CSS (Wert) | : | #ffffff | CSS (Wert) | : | #808000 | |
CSS (kürzest) | : | #fff | CSS (kürzest) | : | #808000 | |
CSS (RGB) | : | rgb(255,255,255) | CSS (RGB) | : | rgb(128,128,0) | |
CSS (%RGB) | : | rgb(100%,100%,100%) | CSS (%RGB) | : | rgb(50%,50%,0%) |
Verlauf Hintergrundfarbwert #ffffff nach Schriftfarbe olive | |||||||
#ffffff | #ececda | #dadab6 | #c8c891 | #b6b66d | #a4a448 | #929224 | #808000 |
#ffffff | #ececda | #dadab6 | #c8c891 | #b6b66d | #a4a448 | #929224 | #808000 |
Kombination von #ffffff und olive | |||||||
Aliquam dapibus, lorem sed bibendum consectetur, ligula enim dignissim ligula, a ultrices dolor augue ultrices magna. Suspendisse augue erat, auctor ut ultricies non, facilisis sed neque. Cras id velit ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vestibulum tristique erat, ac interdum justo cursus in. | olive eignet sich als Schriftfarbe auf Hintergrund #ffffff. Helligkeitsunterschied und Unterschied in den Farben sind ok. Die Ähnlichkeit von olive und #ffffff beträgt 80.02%. Die Lesbarkeit dieser Kombination von Farben liegt damit bei 19.98%. |
Hintergrundfarbwert #ffffff | Schriftfarbe olive | ||||||
Verlauf nach Weiß | Verlauf nach Schwarz | Verlauf nach Weiß | Verlauf nach Schwarz | ||||
#ffffff | #ffffff | #ffffff | #ffffff | #808000 | #808000 | #808000 | #808000 |
#ffffff | #ffffff | #dadada | #dadada | #929224 | #929224 | #6d6d00 | #6d6d00 |
#ffffff | #ffffff | #b6b6b6 | #b6b6b6 | #a4a448 | #a4a448 | #5b5b00 | #5b5b00 |
#ffffff | #ffffff | #919191 | #919191 | #b6b66d | #b6b66d | #494900 | #494900 |
#ffffff | #ffffff | #6d6d6d | #6d6d6d | #c8c891 | #c8c891 | #363600 | #363600 |
#ffffff | #ffffff | #484848 | #484848 | #dadab6 | #dadab6 | #242400 | #242400 |
#ffffff | #ffffff | #242424 | #242424 | #ececda | #ececda | #121200 | #121200 |
#ffffff | #ffffff | #000000 | #000000 | #ffffff | #ffffff | #000000 | #000000 |
Die Hintergrundfarbe soll sich von Farbwert #ffffff auf Farbe olive ändern, wenn man mit der Maus auf <col> zeigt. Bereiten wir zunächst die Formatierung von <col> in Farbwert #ffffff vor.
Wir legen z.B. Farbwert #ffffff als Hintergrundfarbe von <col> fest:
<style type="text/css"><!-- col { background-color: #fff; } //--> </style>Nun fordern wir, dass bei Berührung mit der Maus die Hintergrundfarbe auf olive geändert wird.
<style type="text/css"><!-- col:hover { background-color:olive; } //--> </style>
Weiteres zum Thema können Sie in Tabellen in HTML finden. Weiteres zum HTML-Tag col ist in der HTML Referenz bei <col> ausführlich zusammengestellt.
Eine Überschrift erzeugen Sie mit HTML-Befehl <h3>. Sie kann farblich gestaltet und hervorgehoben werden.
In diesem Beispiel umranden wir <h3> mit einem gestrichelten, 2 Punkte dicken Rahmen in Farbe olive . Den Hintergrund von <h3> färben wir mit Farbwert #ffffff. In HTML geht dies kaum. Wir nutzen deshalb CSS zur Formatierung.
<style type="text/css"><!-- h3 { border:2pt dashed olive; background-color:#fff; } //--> </style>
Mehr zu h3 erfahren Sie in Grundlegende Gestaltungselemente in HTML. Einzelheiten vom hier gezeigten HTML-Befehl <h3>.
Hintergrund | Farbwert | Farbe | und | Schrift | Farbwert | Farbkombination |
---|---|---|---|---|---|---|
aqua | #00ffff | + | aqua | #00ffff | aqua / #ffffff | |
black | #000000 | + | black | #000000 | black / #ffffff | |
blue | #0000ff | + | blue | #0000ff | blue / #ffffff | |
fuchsia | #ff00ff | + | fuchsia | #ff00ff | fuchsia / #ffffff | |
gray | #808080 | + | gray | #808080 | gray / #ffffff | |
grey | #808080 | + | grey | #808080 | grey / #ffffff | |
green | #008000 | + | green | #008000 | green / #ffffff | |
lime | #00ff00 | + | lime | #00ff00 | lime / #ffffff | |
maroon | #800000 | + | maroon | #800000 | maroon / #ffffff | |
navy | #000080 | + | navy | #000080 | navy / #ffffff | |
olive | #808000 | + | olive | #808000 | olive / #ffffff | |
purple | #800080 | + | purple | #800080 | purple / #ffffff | |
red | #ff0000 | + | red | #ff0000 | red / #ffffff | |
silver | #c0c0c0 | + | silver | #c0c0c0 | silver / #ffffff | |
teal | #008080 | + | teal | #008080 | teal / #ffffff | |
white | #ffffff | + | white | #ffffff | white / #ffffff | |
yellow | #ffff00 | + | yellow | #ffff00 | yellow / #ffffff |