IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

HTML Discussion :

[W3C] Problème de validation W3C


Sujet :

HTML

Mode arborescent

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre habitué
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 11
    Par défaut [W3C] Problème de validation W3C
    Bonjour,

    J'ai essayé avec W3C, mon fichier php et cela me sort 41 erreurs.

    La plupart des erreurs, je ne vois pas comment les réctifiés alors si quelqu'un peux m'aider?

    La page php est en pièce jointe et les erreurs sont :
    Line 23 column 17: there is no attribute "language".
    <script language="javascript">
    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.



    Error Line 23 column 29: required attribute "type" not specified.
    <script language="javascript">
    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.



    Error Line 28 column 89: there is no attribute "STYLE".
    ...nerHTML = '<a href="index.php" STYLE="color:#2313ec">Accueil</a> |<a href="re


    Error Line 28 column 104: document type does not allow element "a" here.
    ...ref="index.php" STYLE="color:#2313ec">Accueil</a> |<a href="reco.php" STYLE="
    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
    Fichiers attachés Fichiers attachés

Discussions similaires

  1. [W3C] Problème de validation W3C
    Par killermano dans le forum Balisage (X)HTML et validation W3C
    Réponses: 5
    Dernier message: 19/03/2009, 09h52
  2. [W3C] Problème de validation w3c
    Par sofuzion dans le forum Balisage (X)HTML et validation W3C
    Réponses: 5
    Dernier message: 21/07/2008, 12h24
  3. [HTML 4.01] Problème de validation W3C
    Par arnaud_verlaine dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 08/06/2007, 11h29
  4. [W3C] Problème de validation XHTML 1.0 strict
    Par Cedrun dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 12/09/2006, 11h53
  5. [HTML / Viewpoint / Valid W3C] Problème de lecture
    Par zebden dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 01/02/2005, 11h15

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo