Ho un sito in html e php. Ho guardato in giro qualche tutorial sul doctype ma non mi è molto chiaro quale usare per il mio sito.
Sto provando con:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
ma il W3C Markup Validation Service mi da vari errori. In particolare mi indica che nei vari meta non è definito il content.. eppure io l'ho definito!
Ecco l'elenco dei meta:
<meta http-equiv="Content-Type" Content="text/html; charset=iso-8859-1">
<meta http-equiv="Cache-Control" Content="no-cache">
<meta http-equiv="Pragma" Content="no-cache">
<meta http-equiv="Expires" Content="0">
<meta name="Description" Content="Il mio sito">
<meta name="Keywords" Content="sport, pesca, hobby, modellismo">
<meta name="Robots" Content="index,follow">
<meta name="Language" Content="it">
<meta name="Language" Content="en">
<meta name="Language" Content="en-us">
in particolare il primo mi da questo errore: 'You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). '
dove sbaglio??
Il doctype in questione è adatto al mio caso?
Grazie mille.