Hallo Thomas
Was heisst *(body nur bei HTML transitional)*?
- <body><font></font></body>?
- <body font>?
Und wie gesagt, wo steht, dass <font> innerhalb eines Block-Elements stehen muss?
Bei HTML-Strict darf man zwischen <body> und </body> nicht einfach Text notieren, sondern muss jeden Text in irgendwelche Block-Elemente einschliessen, egal ob das nun <div> oder <p> oder eine Tabelle ist. Bei Transitional darf man dagegen auch direkt zwischen <body> und </body> nackten Text oder Inline-Elemente (wie <b>, <i> oder eben auch <font>) verwenden.
Du kannst also bei Transitional problemlos notieren:
<body>
<font> bla ... </font>
</body>
Das aendert aber nichts an der Regel, dass Inline-Elemente keine Block-Elemente enthalten duerfen. Nicht erlaubt ist also:
<body>
<font> bla ... <p> blubb</p></font>
</body>
Auch wenn es in allen gaengigen Browsern funktioniert.
Erlaubt ist nur:
<body>
<font> bla ... </font><p><font>blubb</font></p>
</body>
viele Gruesse
Stefan Muenz