Attribut: <p stye="background-color:yellow">
<p style="background-color:yellow"> Dieser Hintergrund heisst: <p style="background-color:yellow"></p>
Dieser Hintergrund heisst: <p style="background-color:yellow">
1) Angabe im Stylesheet (mit class)
pre.quell {font-family:monospace;background:#FAEBD7;color:#000000;}
2) Angabe im Quelltext (mit class="")
<pre class="style"> Dies ist ein "pre-Text" </pre>
3) Dann erscheint im HTML-Dokument
Dies ist ein "pre-Text"
<p style="color:blue"> Diese Schrift heisst:<p style="color:blue"></p>
Diese Schrift heisst: p style="color:blue"
<p style="font-family:Arial,sans-serif;font-size:20px;color:red"> Diese Schrift heisst: <p style="font-family:Arial,sans-serif; font-size:20px;color:red"</p>
Diese Schrift heisst: <p style="font-family:Arial,sans-serif;font-size:20px;color:red">
<body style="background:#751000;color:#000;">
body {background:#751000;color:#000;}
<table cellpadding="10" border="0"> <tr> <td bgcolor="#33CCFF"> Text 1a Spalte 1 <br> Text 1b Spalte 1 </td> <td bgcolor="lime"> Text 2a Spalte 2a <br> Text 2b Spalte 2 </td> </tr> </table>
|
Text 1a Spalte 1 Text 1b Spalte 1 |
Text 2a Spalte 2a Text 2b Spalte 2 |
<span> formatierter Text mit Farbe hervorheben
⇒ Siehe auch "Mit <span> formatieren"
<p>Dies ist ein Text bei dem <span style="background-color:yellow"> "Hervorgehobener Text" </span>hervorgehoben wird.</p>
Dies ist ein Text bei dem "Hervorgehobener Text" hervorgehoben wird.
1) Angabe im Stylesheet mit class-Formatierung
span.highlight {background-color:yellow;}
2) Angabe im Quelltext
<p>Dies ist ein Text bei dem<span class="highlight"> "Hervorgehobener Text"</span>hervorgehoben wird.</p>
3) Dann erscheint im HTML-Dokument
Dies ist ein Text bei dem "Hervorgehobener Text" hervorgehoben wird.
↑