Einzelnen Beitrag anzeigen
  #1 (permalink)  
Alt 09.05.2006, 14:57
tin tin ist offline
Neuer Benutzer
neuer user
Thread-Ersteller
 
Registriert seit: 09.05.2006
Beiträge: 7
tin befindet sich auf einem aufstrebenden Ast
Standard XHTML 1.0 - Fehler mit <style>

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
Mit Zitat antworten
Sponsored Links