Partage
  • Partager sur Facebook
  • Partager sur Twitter

A propos du test de validation html & CSS

    25 décembre 2005 à 1:53:14

    Bonsoir,

    je ne comprend pas quelque chose dans le test de validation, exemple :
    Line 413 column 39: document type does not allow element "h1" here; missing one of "object", "ins", "del", "map", "button" start-tag.

    > cela correspond à quoi ? quelles lignes ? quelles colonnes ?

    pouvez vous m'aidez ?
    Edit :
    Ok j'ai mis pas mal de temps avant de tilter lol

    Cependant pouvez vous m'aidez ? J'ai 33 erreurs !


    ---
    Line 415 column 116: required attribute "alt" not specified.

    ...og.com/blog/uploads/naruto_barre2.gif"></div><p style="margin: 0px;"></p><div 

    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>.
    ---

    qu'est-ce que cela ?
    (les guillemets sont surlignés en rouge).



    • Partager sur Facebook
    • Partager sur Twitter
      25 décembre 2005 à 3:37:14

      Bonjour,

      ..og.com/blog/uploads/naruto_barre2.gif" alt="description de ton image" /></div><p style="margin: 0px;"></p><div

      Voilà ^^
      • Partager sur Facebook
      • Partager sur Twitter
        25 décembre 2005 à 13:49:40

        Bonjour,

        ok merci et pour ceci :

        ---
        Line 415 column 147: end tag for "img" omitted, but OMITTAG NO was specified.

        ...e2.gif" alt="separation header" ></div><p style="margin: 0px;"></p><div style


        You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
        ---
        qu'est-ce que cela ?
        (le v de div est surligné en rouge).

        • Partager sur Facebook
        • Partager sur Twitter
          25 décembre 2005 à 14:01:13

          salut

          il te manque le / pour fermer ta balise img
          <img src="image.gif" alt="du texte ..." />


          voila
          bonne fête

          ++
          • Partager sur Facebook
          • Partager sur Twitter
            25 décembre 2005 à 14:03:07

            Ah oui merci,

            et ceci :
            ---
            Line 463 column 46: there is no attribute "target".

            ...ef="http://www.n-c-team.com/" target="_blank">Naruto Constant Team</a></li><l


            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.
            ---

            ?

            • Partager sur Facebook
            • Partager sur Twitter
              25 décembre 2005 à 14:11:02

              L'attribut target n'est pas valide en (x)HTML, si tu veux ouvrir ton lien dans une nouvelle page il te faut utiliser le javascript :)

              Donc tu dois remplacer:
              target="_blank"


              par:
              onclick="window.open(this.href); return false;"


              Et là ta page est valide :)

              PS: pense à indiquer que ton problème est reglé ;)
              • Partager sur Facebook
              • Partager sur Twitter

              A propos du test de validation html & CSS

              × 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