5568 sujets

Sémantique web et HTML

Bonjour,

Sur mon site www.nepaldreamtea.com, j'ai plein d'erreurs avec http://validator.aborla.net du type :

4: <meta charset="utf-8">
<meta> lacks "content" attribute
<meta> proprietary attribute "charset"
<input> proprietary attribute "placeholder"
<a> proprietary attribute "data-container"
<a> proprietary attribute "data-container"
<a> proprietary attribute "data-lang"

Y en a plein du même type d'erreurs; quelqu'un sait de quoi il s'agit ?

Avec w3c , les erreurs sont :
Error: The align attribute on the div element is obsolete. Use CSS instead.
From line 126, column 1; to line 126, column 19
p>?</div>?<div align="right">?<div
Error: Bad value 100% for attribute width on element iframe: Expected a digit but saw % instead.
From line 144, column 109; to line 145, column 94
m:56.25%"><iframe class="element-to-stretch" width="100%" height="100%" src=?"https://www.youtube.com/embed/J9JdUr1ZsRM?fs=1&amp;rel=0" frameborder="0" allowfullscreen=""></ifra
Error: Bad value 100% for attribute height on element iframe: Expected a digit but saw % instead.
From line 144, column 109; to line 145, column 94
m:56.25%"><iframe class="element-to-stretch" width="100%" height="100%" src=?"https://www.youtube.com/embed/J9JdUr1ZsRM?fs=1&amp;rel=0" frameborder="0" allowfullscreen=""></ifra
Error: The frameborder attribute on the iframe element is obsolete. Use CSS instead.
From line 144, column 109; to line 145, column 94
m:56.25%"><iframe class="element-to-stretch" width="100%" height="100%" src=?"https://www.youtube.com/embed/J9JdUr1ZsRM?fs=1&amp;rel=0" frameborder="0" allowfullscreen=""></ifra
Error: The align attribute on the div element is obsolete. Use CSS instead.
From line 159, column 1; to line 159, column 19
v>?</div>?<div align="right">?<div
Error: Bad value fEd0 for attribute rel on element a: The string fEd0 is not a registered keyword.
From line 178, column 27; to line 178, column 77
float-r"><a href="_media/img/large/sdc12704.jpg" rel="fEd0"><img c
Error: The align attribute on the div element is obsolete. Use CSS instead.
From line 189, column 1; to line 189, column 19
p>?</div>?<div align="right">?<div
Error: Bad value UBr8 for attribute rel on element a: The string UBr8 is not a registered keyword.
From line 208, column 27; to line 208, column 97
float-l"><a href="_media/img/large/health-benefits-of-green-tea.jpg" rel="UBr8"><img c
Error: The align attribute on the div element is obsolete. Use CSS instead.
From line 225, column 1; to line 225, column 19
p>?</div>?<div align="right">?<div

Si quelqu'un peu me donner un coup de pouce..
Merci
Pierre

Avec w3c , les erreurs sont :
Error: The align attribute on the div element is obsolete. Use CSS instead.
From line 126, column 1; to line 126, column 19
p>?</div>?<div align="right">?<div
Error: Bad value 100% for attribute width on element iframe: Expected a digit but saw % instead.
From line 144, column 109; to line 145, column 94
m:56.25%"><iframe class="element-to-stretch" width="100%" height="100%" src=?"https://www.youtube.com/embed/J9JdUr1ZsRM?fs=1&amp;rel=0" frameborder="0" allowfullscreen=""></ifra
Error: Bad value 100% for attribute height on element iframe: Expected a digit but saw % instead.
From line 144, column 109; to line 145, column 94
m:56.25%"><iframe class="element-to-stretch" width="100%" height="100%" src=?"https://www.youtube.com/embed/J9JdUr1ZsRM?fs=1&amp;rel=0" frameborder="0" allowfullscreen=""></ifra
Error: The frameborder attribute on the iframe element is obsolete. Use CSS instead.
From line 144, column 109; to line 145, column 94
m:56.25%"><iframe class="element-to-stretch" width="100%" height="100%" src=?"https://www.youtube.com/embed/J9JdUr1ZsRM?fs=1&amp;rel=0" frameborder="0" allowfullscreen=""></ifra
Error: The align attribute on the div element is obsolete. Use CSS instead.
From line 159, column 1; to line 159, column 19
v>?</div>?<div align="right">?<div
Error: Bad value fEd0 for attribute rel on element a: The string fEd0 is not a registered keyword.
From line 178, column 27; to line 178, column 77
float-r"><a href="_media/img/large/sdc12704.jpg" rel="fEd0"><img c
Error: The align attribute on the div element is obsolete. Use CSS instead.
From line 189, column 1; to line 189, column 19
p>?</div>?<div align="right">?<div
Error: Bad value UBr8 for attribute rel on element a: The string UBr8 is not a registered keyword.
From line 208, column 27; to line 208, column 97
float-l"><a href="_media/img/large/health-benefits-of-green-tea.jpg" rel="UBr8"><img c
Error: The align attribute on the div element is obsolete. Use CSS instead.
From line 225, column 1; to line 225, column 19
p>?</div>?<div align="right">?<div

Si quelqu'un peu me donner un coup de pouce..
Merci
Pierre
Il y a des erreurs de plusieurs types :
par exemple le site utilise des attributs obsolètes comme align="center", qui doivent être remplacés en CSS par text-align: center.
Autre problème, des balises obsolètes aussi, comme la meta keywords, ou inutiles comme la meta robots all.
S’ensuivent d’autres nombreuses erreurs de structure, qui apparemment sont dues au générateur de code utilisé.
Dans un cas pareil, j’essayerais d’utiliser un autre générateur qui me crée pas de balises et d’attributs obsolètes (plus facile à dire qu’à faire je le sais bien)
Mais attendez néanmoins des réponses d’autres personnes certainement plus qualifiées que moi... Smiley smile