• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Problem mit HTML Validat

ashtray

Neues Mitglied
Hi, ich bekomm beim Validat mit w3c ne Fehlermeldung, und ich weis nich wie ich sie beheben soll. Bzw hab ich gleich 2 bei denen ich das nicht weis.

Einmal diese hier:


  1. error.png
    Line 111, Column 3: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag <p>Korfu
    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
    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>").

Da gefallen ihm die <p> nicht, warum? Wie kann ich die durch was gleichwertiges ersetzen?


Dann hab noch über IFrame Karten von Wikimapia eingebunden, das zeigt er auch als fehler an. Wie kann ich das lösen?

Fehler bekommt ihr zum beispiel wenn ihr www.kerkyra.korfu.de anschaut, also direkt den Index, oder zum beispiel Kerkyra-Korfu.de - Afionas

VIelen dank für eure Hilfe"
 
p darf sich nicht innerhalb eines "span" befinden.
Mach's also umgekehrt:
Code:
<p><span style="...">Text</span></p>
Noch besser: Du kannst auf den span ganz verzichten und die Styleangaben direkt p zuweisen bzw. wenn generell durchgängig dem übergeordneten Element.
 
Zurück
Oben