@@Gunnar Bittersmann
<h1 style="color:rgb(0, 0, 0);font-family:Arial;font-size:25px;text-align: left;margin-left: 25px">Warum
rgb(0, 0, 0)und nicht einfach (und lesbar)black? Und warum gibts du das überhaupt an, wo das doch default ist?
Zusätzlich zum bereits Gesagtem: Wenn eine Textfarbe angegeben wird, muss auch eine Hintergrundfarbe angeben werden.
Warum? Nutzer könnten in ihrem Browserstylesheet
body { background: black; color: white }
angegeben haben.
Wird nun h1 { color: black } ohne Angabe einer Hintergrundfarbe gesetzt, erbt h1 die Hintergrundfarbe von body, d.h. Schwarz auf Schwarz.
Man müsste also h1 { background: white; color: black } angeben. Aber wie schon gesagt, will man das gar nicht. h1 soll die Textfarbe von body erben; also gar keine Angabe für color (und dann auch nicht für background) machen.
🖖 Живіть довго і процвітайте
When the power of love overcomes the love of power the world will know peace.
— Jimi Hendrix