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 :

[XHTML] comment respecter W3C


Sujet :

HTML

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 98
    Par défaut [XHTML] comment respecter W3C
    Bonjour !

    Voilà je pense, personnellement, que les normes W3C devraient être mieux respectée donc ayant acquis les bases en HTML et CSS je voudrais m'y mettre mais le pb c'est que je ne sais pas trop ce qu'il faut faire pour être aux normes donc si quelqu'un avait un petit tuto ou un truc du genre (en français car l'anglais et moi ça fait 3) pour savoir ce qu'il y a faire pour respecter ces normes ça serait cool.

    Merci d'avance à tous

  2. #2
    Membre Expert Avatar de HiRoN
    Homme Profil pro
    Développeur Web
    Inscrit en
    Août 2007
    Messages
    2 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Août 2007
    Messages : 2 035
    Par défaut
    Il te suffit d'aller ici :

    http://xhtml.developpez.com/outils/?...eur-multipages

    Et de te servir du Validateur W3C.

    Je ne sais pas trop ce qu'il faut faire pour être aux normes.
    Tu mets ta page en ligne.
    Tu mets l'url dans le validateur qui te renvoie les erreurs de normes, et tu corriges...

    Respecter la norme, ça correspond à :

    Syntaxe
    La grammaire du XHTML répond à certaines règles :

    * Les noms des balises et des attributs sont en minuscules.
    On écrit : <p> et plus <P>.

    * Les valeurs des attributs sont entre doubles quotes.
    On écrit : <p align="center"> et plus <p align=center>.

    * Tout attribut doit impérativement avoir une valeur.
    On écrit : <table border="1"> et plus <table border>.

    * Toute balise ouvrante doit être refermée.
    On écrit : <p>blabla</p> et plus <p>blabla.

    * Toutes les balises sont ouvrantes.
    On écrit : <br /> et plus <br> ou encore : <hr width="50%" /> et plus <HR WIDTH=50%>.

    * Les balises doivent être correctement imbriquées.
    On écrit : <p><i>blabla</i></p> et pas <p><i>blabla</p></i>.
    Tout document qui se conforme strictement à ces règles sera dit bien formé (et sera donc valide...)
    Pensez à utiliser les ressources disponibles en Dev. Web :
    (x)HTML : Cours (X)HTML / FAQ (X)HTML
    CSS : Cours CSS / FAQ CSS / Galerie CSS
    Javascript : Cours / FAQ / Sources
    Mon site : Développeur Web Freelance

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 98
    Par défaut
    ok merci mais il y a pas des tutos avec des trucs à faire ou à ne pas faire ... ?

    Comme je t ai dit l'anglais et moi ça fait 2 et surtout que je comprends rien à leur pb....

    exmple il mets :

    Line 9, 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>.
    alors que ligne 9 c'est encore des balises meta et de plus partout dans ma page, quand j'utlise la balise script j'cris :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
     <script type="text/javascript"> ..... </script>
    Donc je comprends vraiment rien...

  4. #4
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 98
    Par défaut
    j avais pas fait attentio à à la fin de ton post et tout ce que tu me dis c'est bien ce que j efais donc ça va ça me rassure je devrais pas faire d'effort pour me mettre à ces règles.

    De même il me parle de plein de pn avec mes <frame > alors que j en utilise pas.... JE COMPRENDS RIEN !!!!!!!!!

  5. #5
    Membre Expert Avatar de HiRoN
    Homme Profil pro
    Développeur Web
    Inscrit en
    Août 2007
    Messages
    2 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Août 2007
    Messages : 2 035
    Par défaut
    Il te suffit de prendre le temps de comprendre tes erreurs en fonction des messages donnés par le validateur qui seront pour la plupart des cas des erreurs de syntaxe, voir de conception + générale de la(les) page(s) (comme par ex, imbriquer des éléments qu'on ne doit pas imbriquer ensemble )

    Au niveau anglais, trouve un traducteur en ligne qui te permettra de comprendre au moins le sens général des messages délivrés (mais pour du long terme, mets-toi à l'anglais !)
    Pensez à utiliser les ressources disponibles en Dev. Web :
    (x)HTML : Cours (X)HTML / FAQ (X)HTML
    CSS : Cours CSS / FAQ CSS / Galerie CSS
    Javascript : Cours / FAQ / Sources
    Mon site : Développeur Web Freelance

  6. #6
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2007
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2007
    Messages : 98
    Par défaut
    je veux bien prendre le temps de comprendre mais il me mets 12 validation output avec des trucs qui n existe pas il me parle 8 fois de problemes soir sur frameset soit frame :

    # Line 22, Column 15: there is no attribute "ROWS".

    <frameset rows="100%,*" frameborder="NO" border="0" framespacing="0">



    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    # Error Line 22, Column 36: there is no attribute "FRAMEBORDER".

    <frameset rows="100%,*" frameborder="NO" border="0" framespacing="0">



    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    # Error Line 22, Column 48: there is no attribute "BORDER".

    <frameset rows="100%,*" frameborder="NO" border="0" framespacing="0">



    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    # Error Line 22, Column 65: there is no attribute "FRAMESPACING".

    …s="100%,*" frameborder="NO" border="0" framespacing="0">



    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    # Error Line 22, Column 68: element "FRAMESET" undefined.

    …%,*" frameborder="NO" border="0" framespacing="0">



    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 23, Column 12: there is no attribute "NAME".

    <frame name="main_frame" src="http://******.servhome.org">



    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    # Error Line 23, Column 29: there is no attribute "SRC".

    <frame name="main_frame" src="http://*****.servhome.org">



    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    # Error Line 23, Column 64: element "FRAME" undefined.

    …="main_frame" src="http://******.servhome.org">



    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).
    alors que mon document utilise pas de frames ....
    Il me parle deux fois de script :
    # Line 9, 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 14, Column 7: required attribute "TYPE" not specified.

    <script>



    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>.
    alors que ligne 9 c'est une balise meta et ligne 14 c'est la fin d'un commentaire conditionnel<![endif]-->

    Et que partout dans mon document j'utilise mes cript de cette façon :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    <script type="text/javascript">                         
    var aujourdhui = new Date();
    document.write("<p>" + dateComplete(aujourdhui) + "</p>");
    </script>
    ou
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <script type="text/javascript" src="date.js"></script>
    et mes images sont ttes sous la forme :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <img scr="...png" alt="..." title="...">

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

Discussions similaires

  1. [W3C - XHTML] Comment rendre ma page valide ?
    Par retour dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 23/09/2008, 13h11
  2. [XHTML] Comment centrer son arrière plan sur toute page internet?
    Par simplyme dans le forum Balisage (X)HTML et validation W3C
    Réponses: 10
    Dernier message: 28/11/2006, 15h09
  3. [XHTML] Comment réaliser cette boite ?
    Par °°° Zen-Spirit °°° dans le forum Balisage (X)HTML et validation W3C
    Réponses: 6
    Dernier message: 08/09/2006, 20h19
  4. [XHTML] comment insérer une vidéo.wmv
    Par girondins76 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 1
    Dernier message: 29/03/2006, 23h13
  5. [XHTML] Comment créer un site certifié XHTML ?
    Par regbegpower dans le forum ASP.NET
    Réponses: 12
    Dernier message: 08/03/2004, 20h47

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