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 :

[débutante] problème de validation des méta-tags


Sujet :

HTML

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2005
    Messages : 13
    Points : 11
    Points
    11
    Par défaut [débutante] problème de validation des méta-tags
    Bonjour à tous,
    je viens de terminer mes pages en xhtml/css et je rencontre un problème avec les méta-tag.
    Je n'arrive pas à les valider sur w3.org
    Quelqu'un pourrait-il m'aider et me dire ce que je dois changer car je m'y perds.

    voici ce que j'ai écrit dans <head>:

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
    <head>
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Acceuil</title>

    <META name="description" content="Tout savoir sur le groupe rock canadien Nickelback.C'est un quatuor composé de Chad Kroeger (chant,guitare),Mike Kroeger (basse),Ryan Peake (guitare,chant) et Ryan Vikedal (batterie).">
    <META name="keywords" content="Nickelback,nickelback,chad kroeger,mike kroeger,ryan peake,ryan vikedal,daniel adair,biographie,photos,wallpapers,avatars,vidéos,audios,paroles,traductions,partitions,carte de fans,fanlisting,forum,tournée,discographie,the long road,silver side up,the state,curb,hesher,someday,hero,how you remind me,leader of men,breathe,never again,date de concerts">
    <META HTTP-EQUIV="Content-Language" content="fr">
    <META name="reply-to" content="silversky_1@msn.com">
    <META name="category" content="Musique rock">
    <META name="robots" content="index, follow">
    <META name="distribution" content="global">
    <META name="revisit-after" content="30 days">
    <META name="author" lang="fr" content="SILVERSKY">
    <META name="copyright" content="Silversky">
    <META name="generator" content="notepad">
    <META name="identifier-url" content="http://nickelback.freezee.org">
    <META name="expires" content="never">
    <META name="Date-Creation-yyyymmdd" content="20050510">
    <META name="Date-Revision-yyyymmdd" content="20050510">
    <link rel="stylesheet"media="screen"type="text/css"title="Acceuil"href="site.css"/>

    <meta http-equiv="Page-Exit" content="revealTrans(duration=2,transition=14)"/>


    <!-- DEBUT DU SCRIPT -->
    <!-- Script provenant de http://www.toulouse-renaissance.net -->
    <style type="text/css">
    .navtext {
    width:235px;
    font-size:8pt;
    font-family:verdana;
    border-width:2px;
    border-style:outset;
    border-color:white;
    layer-background-color:black;
    background-image:url("images/blue.jpg");
    color:black;
    }
    </style>
    <!-- FIN DU SCRIPT -->


    <script src="alttxt.js" type="text/javascript"></script>
    </head>


    Par contre voici les erreurs que w3.org me signalent.Que puis-je donc changer ???


    Error Line 4 column 20: there is no attribute "http-equiv".
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    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 4 column 43: there is no attribute "content".
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


    Error Line 4 column 74: element "META" undefined.
    ...pe" content="text/html; charset=iso-8859-1">
    You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
    by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.



    Error Line 7 column 11: there is no attribute "name".
    <META name="description" content="Tout savoir sur le groupe rock canadien Nickel


    Error Line 7 column 218: element "META" undefined.
    ...re,chant) et Ryan Vikedal (batterie).">


    Error Line 8 column 383: element "META" undefined.
    ...n,breathe,never again,date de concerts">


    Error Line 9 column 17: there is no attribute "HTTP-EQUIV".
    <META HTTP-EQUIV="Content-Language" content="fr">


    Error Line 9 column 48: element "META" undefined.
    <META HTTP-EQUIV="Content-Language" content="fr">


    Error Line 10 column 51: element "META" undefined.
    <META name="reply-to" content="silversky_1@msn.com">


    Error Line 11 column 44: element "META" undefined.
    <META name="category" content="Musique rock">


    Error Line 12 column 43: element "META" undefined.
    <META name="robots" content="index, follow">


    Error Line 13 column 42: element "META" undefined.
    <META name="distribution" content="global">


    Error Line 14 column 44: element "META" undefined.
    <META name="revisit-after" content="30 days">


    Error Line 15 column 25: there is no attribute "lang".
    <META name="author" lang="fr" content="SILVERSKY">


    Error Line 15 column 49: element "META" undefined.
    <META name="author" lang="fr" content="SILVERSKY">


    Error Line 16 column 42: element "META" undefined.
    <META name="copyright" content="Silversky">


    Error Line 17 column 40: element "META" undefined.
    <META name="generator" content="notepad">


    Error Line 18 column 67: element "META" undefined.
    ...ifier-url" content="http://nickelback.freezee.org">


    Error Line 19 column 36: element "META" undefined.
    <META name="expires" content="never">


    Error Line 20 column 54: element "META" undefined.
    <META name="Date-Creation-yyyymmdd" content="20050510">


    Error Line 21 column 54: element "META" undefined.
    <META name="Date-Revision-yyyymmdd" content="20050510">


    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".



    Info Line 21 column 0: start tag was here.
    <META name="Date-Revision-yyyymmdd" content="20050510">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 20 column 0: start tag was here.
    <META name="Date-Creation-yyyymmdd" content="20050510">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 19 column 0: start tag was here.
    <META name="expires" content="never">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 18 column 0: start tag was here.
    <META name="identifier-url" content="http://nickelback.freezee.org">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 17 column 0: start tag was here.
    <META name="generator" content="notepad">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 16 column 0: start tag was here.
    <META name="copyright" content="Silversky">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 15 column 0: start tag was here.
    <META name="author" lang="fr" content="SILVERSKY">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 14 column 0: start tag was here.
    <META name="revisit-after" content="30 days">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 13 column 0: start tag was here.
    <META name="distribution" content="global">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 12 column 0: start tag was here.
    <META name="robots" content="index, follow">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 11 column 0: start tag was here.
    <META name="category" content="Musique rock">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 10 column 0: start tag was here.
    <META name="reply-to" content="silversky_1@msn.com">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 9 column 0: start tag was here.
    <META HTTP-EQUIV="Content-Language" content="fr">
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 8 column 0: start tag was here.
    <META name="keywords" content="Nickelback,nickelback,chad kroeger,mike kroeger,r
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 7 column 0: start tag was here.
    <META name="description" content="Tout savoir sur le groupe rock canadien Nickel
    Error Line 57 column 9: end tag for "META" omitted, but OMITTAG NO was specified.
    </head>


    Info Line 4 column 3: start tag was here.
    <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    Error Line 57 column 9: end tag for "head" which is not finished.
    </head>
    Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

    Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.



    The W3C Validator Team

    Merci beaucoup pour votre aide

  2. #2
    Membre confirmé Avatar de Phiss
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2005
    Messages
    676
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2005
    Messages : 676
    Points : 616
    Points
    616
    Par défaut
    Alors déjà il y a une erreur au mot accueil.

    Sinon essaies déjà de fermer toutes tes balises de meta en mettant /> à la place de >.

    Ensuite en cherchant sur le site de W3 j'ai trouvé ceci en entête de leurs pages
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://www.w3.org/2002/12/wg">
    Tu peux toujours essayer.
    " L'absence diminue les médiocres passions et augmente les grandes, comme le vent éteint les bougies et allume le feu. "
    La Rochefoucauld

  3. #3
    Membre confirmé Avatar de Perceval
    Homme Profil pro
    Responsable de projet fonctionnel
    Inscrit en
    Mars 2003
    Messages
    355
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Responsable de projet fonctionnel
    Secteur : Distribution

    Informations forums :
    Inscription : Mars 2003
    Messages : 355
    Points : 464
    Points
    464
    Par défaut
    même remarque... déjà, fermet les balises meta-tag. Ensuite, tant qu'a être complet, rajouter le doctype
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    le <?xml.... ?> n'est pas nécessaire.
    Save a tree... Eat a beaver

  4. #4
    Membre à l'essai
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2005
    Messages : 13
    Points : 11
    Points
    11
    Par défaut
    merci pour votre aide mais j'ai trouvé un générateur de méta-tags qui a résolu le problème en surplus de vos renseignements

    Je ferais d'ailleurs aussi bien de revoir également mon orthographe (ACCUEIL)

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [SimpleXML] [débutant] Accès à des données XML
    Par pouktoro dans le forum Bibliothèques et frameworks
    Réponses: 4
    Dernier message: 24/04/2009, 19h51
  2. [CakePHP] [cakephp] Problème d'affichage des input tag
    Par Rei Itchido dans le forum Bibliothèques et frameworks
    Réponses: 1
    Dernier message: 20/07/2007, 15h18
  3. Réponses: 1
    Dernier message: 14/02/2007, 08h14
  4. Réponses: 3
    Dernier message: 18/01/2007, 16h25
  5. [Débutant] Problème de mapping des ports
    Par zehle dans le forum VHDL
    Réponses: 1
    Dernier message: 22/05/2006, 22h37

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