Bonjour,
J'ai un problème concernant la validation de ma page, j'ai un élément <a> qui me cause un message d'erreur lors de la validation de ma page en w3c.
lien :
ce qui provoque le message d'erreur suivant :
Merci de votre aide.
J'ai un problème concernant la validation de ma page, j'ai un élément <a> qui me cause un message d'erreur lors de la validation de ma page en w3c.
lien :
<a class="imageG" id="imgLeft" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.monsite.com%2Findex.html" title="Validez XHTML 1.0" alt="Validé XHTML 1.0"></a>
ce qui provoque le message d'erreur suivant :
a écrit :
Result: Failed validation, 1 error
File: Untitled-1.html
Encoding: iso-8859-1
Doctype: XHTML 1.0 Strict
Root Namespace: http://www.w3.org/1999/xhtml
Note: The Validator XML support has some limitations.
This page is not Valid XHTML 1.0 Strict!
Below are the results of checking this document for XML well-formedness and validity.
1. Error Line 79 column 148: there is no attribute "alt".
....html" title="Validez XHTML 1.0" alt="Validé XHTML 1.0"></a>
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).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
Merci de votre aide.