Grazie per la spiegazioneOriginariamente inviato da andrea.paiola
il doctype descrive il tipo di documento e il codice lo dovresti scrivere in funziona del doctype non viceversa... comunque mi sembra che tu abbia scelto già di usare html (non XHTML) come linguaggio...
percui sceglierei senz'altro l'ultima versione (4.01)...
![]()
![]()
Ho abbandonato frontapage per imparare l'xhtml. Gli ultimi tre siti li sto sviluppando interamente scrivendo a mano lo stile in file css.
Nella pagina nn vi sono tag font, tabelle e formattazioni di qualsiasi genere... tutto viene richiamato in un file esterno .css
quindi dovrei essere sulla strada dell'xhtml (correggimi se dico scemenze)![]()
Quindi penso potrei inserire
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
E correggere gli errori che mi si presentano alla validzione del documento![]()
Inoltre, alla validazione appunto, mi si presentano questi due strani errori:
Error Line 11 column 6: 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 occured in a script section of your document, you should probably read this FAQ entry.
✉
Error Line 13 column 5: 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).
Eppure nel mio documento i tag sono aperti e chiusi normalmente:
<html>
<head>
<title>Prodotti Tipici Marchese</title>
<META http-equiv=content-type content="text/html; charset=iso-8859-1">
<meta name="description" content="descrizione">
<meta name="revisit-after" content="1 days">
<meta name="language" content="it">
<meta name="keywords" content="parole">
<meta name="robots" content="index,follow">
<LINK href="prodottitipici/immagini/calo.css" type=text/css rel=stylesheet>
</head>
<body>
<div id="pagina"> </div>
</body>
</html>
![]()