kay2012
Neues Mitglied
Hallo liebe Leute,
ich habe hier vor mir das Buch PHP 5.4 & MySQL 5.5 (Florence Maurice vom Addison Wesley Verlag).
Am Anfang des Buches wird kurz das Thema HTML5 angeschnitten, dazu folgende Übung aus dem Buch:
Text wird korrekt in Chrome und Firefox angezeigt, jedoch keine-backround-colors.
Ich habe es im Notepad++ getippt, bestimmt 10 mal angeguckt und finde keinen Fehler.
Im Notepad selbst ist unter Kodierung UTF-8, als auch in den Optionen, bei Dateien ist UTF-8 eingestellt.
Auch in Chrome als auch in Firefox ist UTF-8 eingestellt.
Ich hoffe jemand weiß Rat. Vielen Dank !
ich habe hier vor mir das Buch PHP 5.4 & MySQL 5.5 (Florence Maurice vom Addison Wesley Verlag).
Am Anfang des Buches wird kurz das Thema HTML5 angeschnitten, dazu folgende Übung aus dem Buch:
HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Formatierungen</title>
<style type="text/css">
body { font-family: Verdana, sans-serif; }
.stil1 { font-style: italic; }
.stil2 { color: red; backround-color: yellow; font-size:1.5em; }
.stil3 { font-weight: bold; text-align: center; }
.stil4 { border: 2px dotted blue; padding: 20px; }
.stil5 { width: 400px; height: 80px; backround-color: orange; }
p { backround-color: #DDDDDD; }
</style>
</head>
<body>
<p class="stil1">Hier steht kursiver Text (font-style: italic)</p>
<p class="stil2">Groß (font-size: 1.5em) und bunt (color: red; backround-color: yellow)</p>
<p class="stil3">Fett (font-weight: bold) und zentriert (/text-align: center).</p>
<p class="stil4">Ein Absatz mit Rahmen und Innenabstand: border: 2px dotted blue; und padding; 200px</p>
<p class="stil5">Ein Absatz mit festgelegter Breite und Höhe (width: 400 px; height: 80px; backround-color: orange)</p>
</body>
</html>
Text wird korrekt in Chrome und Firefox angezeigt, jedoch keine-backround-colors.
Ich habe es im Notepad++ getippt, bestimmt 10 mal angeguckt und finde keinen Fehler.
Im Notepad selbst ist unter Kodierung UTF-8, als auch in den Optionen, bei Dateien ist UTF-8 eingestellt.
Auch in Chrome als auch in Firefox ist UTF-8 eingestellt.
Ich hoffe jemand weiß Rat. Vielen Dank !