xhtml - w3c validator tells an error -
w3c says have unclosed tag. way has xhtml
validation output: 1 error
line 31, column 9: end tag "div" omitted, omittag no specified ✉ may have neglected close element, or perhaps meant "self-close" element, is, ending "/>" instead of ">".
line 19, column 4: start tag here
and here xhtml:
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
<head> <title>phpformtemplate</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <script type="text/javascript" src="phpformtempate/checkform.js"></script> <link rel="stylesheet" type="text/css" href="phpformtempate/css/default.css" /> </head> <body> <div id="errorcontainer"> </div> <div id="phpformtemplate"> <form action="/index.php" method="post" accept-charset="utf-8" enctype="application/x-www-form-urlencoded"> <div id="textrequired">*: pflichtfelder</div> <!-- begin input set n° 1 --> <div class="form-input-set-1"> <span class="required-char">*</span> <div class="form-input-label-1"> <label for="bemerkung">bemerkung</label> </div> <div class="form-input-1"> <textarea id="bemerkung" tabindex="1" accesskey="b" name="bemerkung" class="required" rows="10" cols="50">default</textarea> <div class="form-input-error-1"> <span id="error_bemerkung"></span> </div> </div><!-- isn't one? --> <!-- closes <div class="form-input-set-1"> --> <!-- or wrong? pleas help!! --> <!-- end input set n° 1 --> </form> </div> <div id="errorcontainer"> <ul class="error-list"> es wurde keine e-mail den besucher geschickt. </ul> <ul class="error-list"> diese e-mail wurde daenuboehmle@gmail.com geschickt. </ul> </div> </body> </html>
you need have closing tag div, you've missed that
<div class="form-input-set-1">
use nice code editor notepadd++, save such head aches
try this
<head> <title>phpformtemplate</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <script type="text/javascript" src="phpformtempate/checkform.js"></script> <link rel="stylesheet" type="text/css" href="phpformtempate/css/default.css" /> </head> <body> <div id="errorcontainer"> <ul class="error-list"> ihre daten wurden bereits verschickt. </ul> </div> <div id="errorcontainer"> </div> <div id="phpformtemplate"> <form action="/index.php" method="post" accept-charset="utf-8" enctype="application/x-www-form-urlencoded"> <div id="textrequired">*: pflichtfelder</div> <!-- begin input set n° 1 --> <div class="form-input-set-1"> <span class="required-char">*</span> <div class="form-input-label-1"> <label for="bemerkung">bemerkung</label> </div> <div class="form-input-1"> <textarea id="bemerkung" tabindex="1" accesskey="b" name="bemerkung" class="required" rows="10" cols="50"></textarea> <div class="form-input-error-1"> <span id="error_bemerkung"></span> </div> </div> </div> <!-- missing close tag here --> <!-- end input set n° 1 --> </form> </div> </body> </html>