|
|||
Fehlersuche: W3C Validation - Formular
Hallo,
als einzige Seite, bekomme ich das Kontaktformular nicht validiert. Mit der ausgegeben Fehlermeldung kann ich nicht viel anfangen: Code:
document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag. Woran liegt's? Hier das Formular: PHP-Code:
Und das vollständige Dokument: Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Dokument</title> <link rel="stylesheet" href="css/main.css" type="text/css" title="Default Style" /> <!--[if IE]> <style type="text/css"> #navigation{ display: inline; /*for double float margin bug IE*/ word-wrap: break-word;/*for expanding box problem IE*/ } #wrapper{ height:100%;} </style> <![endif]--> </head> <body> <div id="container_center"> <div id="container_nonFooter"> <div id="container_wrapper"> <div id="header"><?php include 'includes/header.php'; ?></div> <div id="navigation"><?php include 'includes/navigation.php'; ?></div> <div id="content"> <h1>Kontakt</h1> <h2>Nachrichten Assistent</h2> <p>Um eine Mitteilung zu versenden, steht Ihnen dieses Formular zur Verfügung. Bitte Namen und Telefonnummer mit angeben!</p> <form action="formmail.php" method="post"> <input type="hidden" name="subject" value="Kontaktformular" /> <input type="hidden" name="access" value="irregeheim" /> <textarea name="Eingabe" cols="39" rows="18" wrap="PHYSICAL" id="Eingabe"></textarea> <br /><br /> <input type="submit" value="Abschicken" /> </form> </div> <div class="clear"></div> </div> </div> <div id="container_foot"> <div id="footer"><?php include 'includes/footer.php'; ?></div> </div> </div> </body> </html> Gruß, Mr.Putty |
Sponsored Links |
Sponsored Links |
|
|||
...nur noch eines!
Spitze! Vielen Dank für den Tip!!!
(Manchmal können solche Kleinigkeiten ganz schön Nerven kosten) @Gumbo: schon geschehen - das <p> erzeugte zu viel Abstand. Danke! Bleibt nur ein Fehler übrig, bei dem ich annahm er resultiere aus obigen: Line 39, Column 57: there is no attribute "wrap". PHP-Code:
Gruß, Mr.Putty Geändert von MrPutty (30.07.2008 um 18:10 Uhr) |
|
||||
Das wrap kannst du entsorgen; das wollte der Netscape 4 in grauer Vorzeit haben.
Gruß Thomas, der das extra Blockelement in Formularen für einen schweren Designfehler der HTML-4-Spezifikation hält
__________________
toscho.de |
|
||||
Das ist unsemantisch.
Wenn, dann in ein <fieldset> IMHO ...
__________________
“My software never has bugs. It just develops random features ...” » DevShack - die Website des freien Webentwicklers Boris Bojic |
Stichwörter |
form, formular, input, validieren, validität, w3c |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
w3c validation error | dayscott | CSS | 14 | 26.10.2014 23:37 |
W3C Validation Problem | indiana_j | (X)HTML | 2 | 30.04.2009 11:31 |
7 Fehler vom W3C Markup Validation Service | empfei | (X)HTML | 2 | 02.03.2009 09:53 |
W3C Validation Service Fehler | reflo | (X)HTML | 14 | 05.08.2007 01:49 |
w3C Validation - Fragezeichen | Roadrunnerle | (X)HTML | 5 | 05.10.2006 12:05 |