Hallo
Bin XHTTL-Anfänger
Meine Webseite liess ich XHTML 1.0 trans validieren - bis auf einen Fehler habe ich alles lösen können.
Zitat:
Line 192 column 28: document type does not allow element "style" here.
<hr /><style type="text/css">
|
Eine Routine fügt zur Laufzeit (mit PHP) zur Darstellung von Nachrichten also zusätzlich im Code dieses <style type...> ein und offenbar geht das mit XHTML nicht.
Der Code-Ausschnitt dieser Stelle:
Code:
<font size="3">Aktuelle Infos</font></p>
<hr /><style type="text/css">
.post_title, .post_date { border-bottom: 1px solid #DDDDDD; }
.post_title { font-weight: bold; font-size: 12px; color: #000000; }
.post_date { text-align: right; font-weight: bold; }
.post_short { text-align: justify; padding-bottom: 5px; }
</style>
<table cellpadding="0" cellspacing="0" border="0" ><tr class="post_top">
...
Wie lösen?
Martin