codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="favicon.ico"/>
<link href="vecchio.css" rel="stylesheet" type="text/css" />
<title>|| titolo ||</title>
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-23336032-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); function chkEmail() { var mail=document.getElementById('email'); var espressione = /^[_a-z0-9+-]+(\.[_a-z0-9+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/;
if (!espressione.test(mail.value))
{ alert("La mail inserita non è valida! Se hai problemi con questo form, inviami una e-mail a: mail@altervista.org"); return false; }
else { alert("Grazie. Il tuo messaggio è stato inviato."); return true; }
return false; }
</script>
</head>
<body> <div class="container"> <div id="header">
<?php include ("menu.php"); ?>
</div> <div class="content"> <div class="contacts"> <h1>Contatti</h1>
<ul > <label class="contact" >Nome </label> <div> <input name="nome" class="testoForm" type="text" onclick="chkEmail()" value="" /> </div>
<label class="contact" >Cognome </label> <div> <input name="cognome" class="testoForm" type="text" value="" /> </div>
<label class="contact" >Sono venuto a conoscenza del tuo sito grazie a ...</label> <div>
<select class="testoForm" name="trovato">
<option value="" selected="selected"></option> <option value="1" >Google</option> <option value="6" > Twitter</option> <option value="2" >Linkedin</option> <option value="3" >Facebook</option> <option value="5" >Un amico </option> <option value="7" >Altro</option> </select> </div> <label class="contact" >Messaggio</label> <div> <textarea name="messaggio" class="testoForm" rows="8" cols="78"></textarea> </div>
<label class="contact" >Numero di telefono</label>
<div> <input name="numero" class="testoForm" type="text" value="" /> </div> <label class="contact" >Email</label> <div> <input name="email" class="testoForm" type="text" maxlength="255" value="" /> </div> <label class="contact" >Sito web </label> <div> <input name="web" class="testoForm" type="text" value="http://" /> </div> <label class="contact" >Allega un file</label> <div> <input name="file" class="contact" type="file" /> </div> <input type="hidden" name="form_id" value="1" /> <input type="hidden" name="submit" value="1" /> <input class="testoForm" type="submit" name="submit" value="Invia" /> <input class="testoForm" type="reset" name="Reset" value="Reset" /> [/list]</form></div> <div id="footerline"></div> </div>
<?php include ("footer.php"); ?>
</div> </body>
</html>
come errore mi viene dato
codice:
Error Line 65, Column 12: document type does not allow element "div" here; assuming missing "li" start-tag <div>
✉ Error Line 115, Column 11: end tag for element "form" which is not open </form></div>
✉ The Validator found an end tag for the above element, but that element is not currently open.
This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case).
In the latter case this error will disappear as soon as you fix the original problem.
If this error occurred in a script section of your document, you should probably read this FAQ entry. Error Line 121, Column 106: end tag for "img" omitted, but OMITTAG NO was specified …g/Icons/valid-html401" alt="Valid HTML 4.01 Strict" height="31" width="88"></a> ✉ You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
LA COSA STRANA è CHE ALLE RIGHE INDICATE DEL CODICE NON TROVO L'ERRORE...COME MAI??