Joomla.it Forum
Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : 71^sec.design 13 May 2013, 14:27:31
-
Ciao,
avrei urgenza di capire come si usa il validatore w3c.
Ho circa 16 errori e dovrei correggerli in fretta ma non ho idea di come si faccia.
-
Ciao.
Dipende dal tipo di errore che ti mostra.
Per esempio
required attribute "alt" not specified
vuol dire che nell'articolo indicato non hai inserito la descrizione dentro l'alt. In questo caso devi aprire l'articolo e aggiungere una descrizione all'immagine.
end tag for element "div" which is not open
hai un </div> di troppo nell'articolo o nel template
Nella maggior parte dei casi sono errori che riguardano il codice html di un articolo oppure del template.
-
Grazie per la risposta,
prima di tutto vorrei capire quanto influiscono questi errori sulla valutazione che google da al tuo sito.
è davvero necessario correggerli?
-
se sono errori ... meglio correggerli ...
oltre a google anche i diversi browser interpretano gli errori a modo loro ...
-
un sito validato è un sito che segue uno standard quindi è più funzionante = più interpretabile = più accessibile = più rilevante per una persona = più quotato da un buon motore di ricerca.
Poi dipende dagli errori... "16 errori", "urgente!" e "non ho idea di come si faccia" non sono dati sufficienti a stabilire la gravità della cosa e SE questi errori possono essere corretti... Potrebbe anche trattarsi 16 volte dello stesso errore..
-
Diciamo che è uno strumento molto utile e utilizzandolo ti abitui a scrivere correttamente il codice (per esempio la chiusura dei tag) o comunque serve per informazioni più complete, per esempio i tag per la descrizione dell'immagine sono utilizzati dai browser testuali o con il blocco delle immagini.
Ogni browser, come dice bene caps, interpreta i tag e le loro proprietà in modo diverso quindi un sito validato non è detto che sia interpretato correttamente da un browser o da una particolare versione di un browser.
La cosa più importante del sito è, a mio avviso, il contenuto. La sua validazione e il SEO sono importantissimi ma sono dei passi successivo alla creazione del sito.
Se sono errori di validazione che riguardano il template a mio avviso sarebbe meglio correggerli, se c'è un errore su un articolo (per esempio un tag non correttamente chiuso) pazienza, non è la fine del mondo.
Se magari ci dici che tipo di errori sono venuti fuori possiamo anche darti un consiglio migliore.
-
Grazie per le risposte.
Non mi rimane che mostrarvi gli errori.
1. Line 6, Column 62: Bad value X-UA-Compatible for attribute http-equiv on element meta.
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
2. Line 88, Column 68: The value of the border attribute on the table element must be either 1 or the empty string. To regulate the thickness of table borders, Use CSS instead.
<table style="background-color: #333333; ; width: 100%;" border="0">
3. Line 91, Column 130: The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead.
…t="" style="display: block; margin-left: auto; margin-right: auto;" />[/url]</td>
4. Line 172, Column 80: The value of the border attribute on the table element must be either 1 or the empty string. To regulate the thickness of table borders, Use CSS instead.
<table style="background-color: #333333; border: 3px solid #6699cc;" border="3">
5. Line 176, Column 126: The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead.
…LASSICO-small.png" border="0" alt="" />
<span style="color: #ffffff;">- c…
6. Line 188, Column 95: The align attribute on the table element is obsolete. Use CSS instead.
…ckground-color: #333333; border: 3px solid #6699cc;" border="3" align="center">
7. Line 188, Column 95: The value of the border attribute on the table element must be either 1 or the empty string. To regulate the thickness of table borders, Use CSS instead.
…ckground-color: #333333; border: 3px solid #6699cc;" border="3" align="center">
8. Line 192, Column 128: The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead.
…EMIDE-2-small.png" border="0" alt="" />
<span style="color: #ffffff;">- c…
9. Line 204, Column 95: The align attribute on the table element is obsolete. Use CSS instead.
…ckground-color: #333333; border: 3px solid #6699cc;" border="3" align="center">
10. Line 204, Column 95: The value of the border attribute on the table element must be either 1 or the empty string. To regulate the thickness of table borders, Use CSS instead.
…ckground-color: #333333; border: 3px solid #6699cc;" border="3" align="center">
11. Line 208, Column 124: The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead.
…-ATHENA-SMALL.png" border="0" alt="" />
<span style="color: #ffffff;">- c…
✉
12. Line 226, Column 33: The align attribute on the table element is obsolete. Use CSS instead.
<table border="0" align="center">
13. Line 226, Column 33: The value of the border attribute on the table element must be either 1 or the empty string. To regulate the thickness of table borders, Use CSS instead.
<table border="0" align="center">
14. Line 237, Column 56: The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead.
<td><img src="/images/LogoNero.png" border="0" alt="" /></td>
15. Line 311, Column 12: Bad value for attribute href on element a: Control character in path component.
</script>">
Syntax of IRI reference:
Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.
-
Sono 10 errori e 6 warning.
Cosa intendono i warning?
-
Guarda che se leggi, sul sito ci sono anche le spiegazioni.
poi non capisco cosa ci sia di così complicato:
The value of the border attribute on the table element must be either 1 or the empty string. To regulate the thickness of table borders, Use CSS instead
-----------------> diventa comprensibile così
http://translate.google.it/#en/it/The%20value%20of%20the%20border%20attribute%20on%20the%20table%20element%20must%20be%20either%201%20or%20the%20empty%20string.%20To%20regulate%20the%20thickness%20of%20table%20borders%2C%20Use%20CSS%20instead
-
Ciao,
c'é la Documentazione Ufficiale e meglio di chi l'ha creato nessun'altro te lo puoi spiegare:
http://validator.w3.org/docs/ (http://validator.w3.org/docs/) :D
-
Sono 10 errori e 6 warning.
Cosa intendono i warning?
In programmazione i warning sono delle avvertenze, per indicarti che quello che hai scritto non è esatto al 100% ma che (probabilmente) funziona lo stesso.
Diciamo che l'errore è una cosa bloccante, come il codice rosso del semaforo e il warning corrisponde all'arancione, della serie "puoi passare ma non dovresti".
-
Scusate la pigrizia, bastava cercare un pò in rete.
Grazie e buona giornata.