Partage
  • Partager sur Facebook
  • Partager sur Twitter

[Validation] Erreurs XHTML

Pouvez-vous m'aider à les corriger ?

    20 décembre 2005 à 17:54:34

    Bonjour tout le monde, ou plutot bonsoir,
    Je suis actuellement en train d'essayer de faire passer mon xhtml au validateur W3C.
    Malheureusement, il y a des erreurs que je n'arrives pas à réctifier. Si une ame charitable pouvais m'aider... :-°

    Voilà une partie du rapport du W3C:


    Error Line 8 column 75: character data is not allowed here.

    ...ontent='text/html; charset=windows-1252' />

    You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).

    Error Line 17 column 70: there is no attribute "ALIGN".

    ...cellspacing="0" border="0" width="850px" align=center>

    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.


    C'est le genre d'erreur que je n'arrives pas à rectifier et qui énerve...
    :colere:

    [Edit] Nyro Xeo > [Edit] Nyro Xeo > Titre "W3C xhtml et css" imprécis, édité.
    • Partager sur Facebook
    • Partager sur Twitter
      20 décembre 2005 à 17:59:54


      align="center">


      La structure d'un tag html c'est ça :

      <tag attribut="value"></tag>


      Il ne faut pas oublier les "" autour de value ^^

      ++
      aimak
      • Partager sur Facebook
      • Partager sur Twitter
        20 décembre 2005 à 18:04:12

        oui, je l'avais déjà fait auparavant. avec un:
        align="center" mais cela ne fonctionne pas non plus.
        Je me suis dis...peut être que j'ai trop hiberné ces temps ci, le code html a peut etre changé.
        • Partager sur Facebook
        • Partager sur Twitter
          20 décembre 2005 à 18:08:42

          Si tu as codé en Strict, c'est normal que le validateur de le refoule car c'est dans le css que ça doit se trouver (c'est de la mise en forme) ... ;)
          • Partager sur Facebook
          • Partager sur Twitter
            20 décembre 2005 à 18:08:45

            Aussi parce que l'attribut n'existe pas.
            Edit : Oups.
            • Partager sur Facebook
            • Partager sur Twitter
              20 décembre 2005 à 18:11:42

              Pour center, j'ai eu le même problème, voilà la réponse :

              http://www.siteduzero.com/forum-83-6967-w3c-site-non-valide.html

              a455bcd9
              • Partager sur Facebook
              • Partager sur Twitter

              [Validation] Erreurs XHTML

              × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
              × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
              • Editeur
              • Markdown