Doctype incredibile!

Frank10

Utente Attivo
4 Mar 2011
190
1
18
Ciao a tutti
Ho un problema con la validazione della mai pagina web..
Ho messo dopo alcuni tentativi questo doc
Codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
http://www.w3.org/TR/html4/strict.dtd>

E sul w3c soli due errori!! Questi però -.-"
Codice:
 Line 2, Column 1: "HTTP:" is not a reserved name
http://www.w3.org/TR/html4/strict.dtd>
✉
 Line 2, Column 1: cannot continue because of previous errors
http://www.w3.org/TR/html4/strict.dtd>

Come mai? che dovrei fare cambiare doctype e se si quale (non uso frameset) o vedere questi due errori??

GRAZIE!
 

Frank10

Utente Attivo
4 Mar 2011
190
1
18
si ottimo! MA Una cosa qual'è il migliore doctype se non usi l'html 5 e frame?
 

Frank10

Utente Attivo
4 Mar 2011
190
1
18
ah altra cosa:
Codice:
 No Character Encoding Found! Falling back to windows-1252.

None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "windows-1252" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents.

Before defaulting to windows-1252 the validator also tried to read the content with the following encoding(s), without success: UTF-8.

Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.

 No Character encoding declared at document level

No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.

See this tutorial on character encoding for techniques and explanations.

Questi due cosa sono?? che dovrei fare?? poi l'icona o immagine html che mi danno, ogni qualvolta che faccio una modifica devo rivalidare il tutto??Per farmi dare l'immagine devo levare anche gli warning?
 

WpStyle

Utente Attivo
25 Gen 2004
611
0
16
Pistoia
www.animalfestival.net
Non è che ci sia un doctype migliore o peggiore, la differenza sta principalmente nelle regole più o meno ferree nella validazione, quindi nei tag deprecati o meno
Per l'errore segnalato prova inserire questo meta:
Codice:
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

Riguardo l'icona dipende solo dal buon senso e la serietà del webmaster in quanto non verrà certo dirtelo il W3C che ci sono errori di validazione e quindi non puoi inserirla.
Ho visto in giro un software per la creazione di template (molto conosciuto) con tanto di icona del W3C nel sito ufficiale del prodotto che generava comunque codice non conforme agli standard.
 

Frank10

Utente Attivo
4 Mar 2011
190
1
18
Ottimo ho risolto con quella scritta grazie mille, come sempre, al forum!
 

Discussioni simili