Zum Inhalt springen

<p>-Element bei XHTML

Erstellt am 8. Mai 2005 · 4 Antworten · letzte Antwort am 8. Mai 2005

Tags: Frage

philipps ·

Hallo liebe Kollegen!

So, bisher hab ich ehrlichgesagt ja noch gar nicht auf einen validen Code geachtet, aber jetzt will ich auch endlich mal meine Typo3-Seiten mit dem W3C-Logo schmücken 😃

So, habs jetzt mit XHTML 1.0 Transitional auf nur noch einen Fehler gebracht. Hier komm ich jetzt aber nicht mehr weiter:

document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Der Fehler tritt logischerweise bei jedem neuen Text-Abschnitt im Seiteninhalt auf.

Die HTML-Ausgabe, Zeile 4 ist das Problem, sieht so aus:

 <!--  CONTENT ELEMENT, uid:1462/text [begin] --> 
  <a name="1462"></a> 
  <!--  Text: [begin] --> 
   <p class="bodytext">Lorem ipsum dolor doming id quod mazim placerat facer possim assum.</p> 
  <!--  Text: [end] --> 
    
 <!--  CONTENT ELEMENT, uid:1462/text [end] -->

Kann mir da mal jemand kurz weiterhelfen? Verstehe irgendwie das Problem nicht richtig und vor allem: was kann ich dagegen unternehmen?

Vielen Dank schon mal und Grüße
philipps

philipps ·

mh, ja sorry. ich bin aber auch ein depp ...

          <td bgcolor="#ffffff">
            <table cellspacing="0" cellpadding="0" width="740" border="0" style="border-collapse: collapse">
              <tbody>
              <tr valign="top">
                <td width="120" bgcolor="#D4D4D4" id="colLeft">
                <p>Hier Sprachwahl-Flaggen!</p>
                <a href="858.html" onfocus="blurLink(this);" onmouseover="over('img858_4693_0');" onmouseout="out('img858_4693_0');">
[...]
<img src="http://www.pfadfinden.de/fileadmin/templates/ihs/gfx/bdp.gif" alt="Bund der Pfadfinderinnen und Pfadfinder Logo. Link auf www.pfadfinden.de" width="149" height="56" border="0" /></a></td>
                <td width="10">&nbsp;</td>
                <td width="570">
                  <p align="left">
                  <br />
	<!--  CONTENT ELEMENT, uid:1462/text [begin] -->
		<a name="1462"></a>
		<!--  Text: [begin] -->
			<p class="bodytext">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.</p>
		<!--  Text: [end] -->
			
	<!--  CONTENT ELEMENT, uid:1462/text [end] -->
		<br />
                  <img border="0" src="clear.gif" width="570" height="1" alt="" /></p>
                  <p align="right"><font size="1">###PRINT###</font></p>
                </td>
                <td width="10">&nbsp;</td>
                <td width="20">&nbsp;
                </td></tr>
              </tbody></table></td></tr>

Hier geht's direkt zu W3C mit der ganzen Source ganz unten: http://validator.w3.org/check?uri=http%3A%2F%2Fmeinzentrum.pfadfinden.de%2F858.html&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1

Ach, und Danke schon mal ...
Grüße
philipps