Paragraph innerhalb Div

Status
Nicht offen für weitere Antworten.

messmar

Erfahrenes Mitglied
Hallo zusammen,

womit könnte man evtl. <p></p> in einem XHTML-Code ersetzen außer <span></span>.

Der XHTML-W3c-Validator meldet einen Fehler, wenn ich den
<p>text text</p> innerhalb eines Divs verwende.

Mit <BR><BR> sieht nicht ganz sauber aus.

Danke und Gruß

Messmar
 
Der Fehler muss woanders liegen. p ist in div erlaubt. Hier ein valides Beispiel:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
    <head>
        <meta http-equiv="Content-Type"
            content="application/xhtml+xml; charset=UTF-8" />
        <title>Test: p in div</title>
    </head>
    <body>
        <div>
            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing
                elit. Curabitur volutpat dolor vitae elit. Nullam
                justo ipsum, laoreet sit amet, ultrices iaculis,
                porta et, neque. Nam at nulla non nunc porttitor
                sodales. Etiam nec est eu risus congue facilisis.
                Aliquam sodales velit sit amet felis. Cras ipsum.
                Phasellus tristique leo non.</p>
        </div>
    </body>
</html>
Gruß hpvw
 
Status
Nicht offen für weitere Antworten.
Zurück