Alla fine sono tornato all'html. Ora però ho un problema (anzi 10).
Fatta la nuova pagina ho proceduto con la validazione, per poi fare la sitemap. Inizialmente gli errori erano 51, ora li ho ridotti a 10, però come potete vedere nell'home page (
www.trovalocali.i) non riesco a "far tornare su" quello che sta giù. Vi prego aiutatemi che non so più dove mettermi le mani.
Vi posto qui sotto gli errori, se volete e senza alcun problema, vi posso postare anche il codice nella mia pagina. Aiutooooooooooooooooooooooooooooooooo
Validation Output: 10 Errors
1. Error Line 156, Column 21: document type does not allow element "div" here; assuming missing "object" start-tag
<div id="masterdiv"/>
?
2. Error Line 158, Column 23: document type does not allow element "style" here
<style type="text/css">
?
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
3. Error Line 209, Column 6: document type does not allow element "body" here
<body>
?
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
4. Error Line 453, Column 254: required attribute "alt" not specified
…idth="259" height="179" border="0" /></p>
?
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
5. Error Line 525, Column 9: end tag for "object" omitted, but OMITTAG NO was specified
</html>
?
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
6. Info Line 156: start tag was here
><div id="masterdiv"/>
7. Error Line 525, Column 9: end tag for "head" omitted, but OMITTAG NO was specified
</html>
?
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
8. Info Line 3: start tag was here
><head>
9. Error Line 525, Column 9: end tag for "html" which is not finished
</html>
?
Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
10. Error Line 526, Column 9: end tag for element "head" which is not open
</head>
?
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.
11. Error Line 525, Column 9: XML Parsing Error: Opening and ending tag mismatch: head line 3 and html
</html>
?
12. Error Line 526, Column 9: XML Parsing Error: Opening and ending tag mismatch: html line 2 and head
</head>