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] Validation W3C


Sujet :

HTML

  1. #1
    Membre chevronné Avatar de Mister Nono
    Homme Profil pro
    Ingénieur Mathématiques et Informatique
    Inscrit en
    Septembre 2002
    Messages
    2 234
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Mathématiques et Informatique
    Secteur : Santé

    Informations forums :
    Inscription : Septembre 2002
    Messages : 2 234
    Points : 1 897
    Points
    1 897
    Par défaut [XHTML] Validation W3C
    Bonjour,

    Ma page d'accueil ne passe pas la validation W3C à cause des balises flash :

    Voilà le résultat :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
     
     Below are the results of attempting to parse this document with an SGML parser.
     
       1. Error Line 50 column 11: there is no attribute "SRC".
     
    <embed src="./fr/animations/anim_captels.swf"
     
          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.
     
    
       2. Error Line 51 column 15: there is no attribute "QUALITY".
     
           quality="high"
     
    
       3. Error Line 52 column 15: there is no attribute "BGCOLOR".
     
           bgcolor="#ffffff"
     
    
       4. Error Line 53 column 13: there is no attribute "WIDTH".
     
           width="220"
     
    
       5. Error Line 54 column 14: there is no attribute "HEIGHT".
     
           height="120"
     
    
       6. Error Line 55 column 12: there is no attribute "NAME".
     
           name="anim_captels"
     
    
       7. Error Line 56 column 13: there is no attribute "ALIGN".
     
           align="left"
     
    
       8. Error Line 57 column 25: there is no attribute "ALLOWSCRIPTACCESS".
     
           allowScriptAccess="sameDomain"
     
    
       9. Error Line 58 column 12: there is no attribute "TYPE".
     
           type="application/x-shockwave-flash"
     
    
      10. Error Line 59 column 13: there is no attribute "WMODE".
     
           wmode="transparent"
     
    
      11. Error Line 60 column 19: there is no attribute "PLUGINSPAGE".
     
           pluginspage="http://www.macromedia.com/go/getflashplayer" />
     
          ✉
      12. Error Line 60 column 65: element "EMBED" undefined.
     
    ...spage="http://www.macromedia.com/go/getflashplayer" />
     
          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.
     
          ✉
      13. Error Line 97 column 65: element "EMBED" undefined.
     
    ...spage="http://www.macromedia.com/go/getflashplayer" />
     
          ✉
      14. Error Line 149 column 33: there is no attribute "AUTOSTART".
     
                           autostart="true"
     
          ✉
      15. Error Line 150 column 28: there is no attribute "LOOP".
     
                           loop="true"
     
          ✉
      16. Error Line 154 column 81: element "EMBED" undefined.
     
    ...ww.macromedia.com/go/getflashplayer" />
    Et voici le code de la page :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
     
    <html>
     
    <head>
    <title>Accueil du site CAPTELS</title>
     
     
      <meta http-equiv="Content-Type" content="text/HTML; iso-8859-15">
      <meta http-equiv="Content-Script-Type" content="text/javascript">
      <meta http-equiv="Content-Style-Type" content="text/css">
      <meta http-equiv="Content-Language" content="fr">
     
     
      <script type="javascript" src="javascript/fonctions.js"></script>
     
      <link rel="stylesheet" type="text/css" href="./fr/styles/styles1.css" media="all">
     
    </head>
     
    <body id="bodyAccueil">
     
     
    <br />
     
    <div id="enteteAccueil">
     
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
            codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
            width="220"
            height="120"
            id="anim_captels"
            align="left">
     
    <param name="allowScriptAccess"
           value="sameDomain" />
     
    <param name="movie"
           value="./fr/animations/anim_captels.swf" />
     
    <param name="quality"
           value="high" />
     
    <param name="bgcolor"
           value="#ffffff" />
     
    <param name="wmode"
           value="transparent">
     
    <embed src="./fr/animations/anim_captels.swf"
           quality="high"
           bgcolor="#ffffff"
           width="220"
           height="120"
           name="anim_captels"
           align="left"
           allowScriptAccess="sameDomain"
           type="application/x-shockwave-flash"
           wmode="transparent"
           pluginspage="http://www.macromedia.com/go/getflashplayer" />
     
    </object>
     
     
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
            codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
            width="430"
            height="120"
            id="anim_pesageEnAction"
            align="right">
     
    <param name="allowScriptAccess"
           value="sameDomain" />
     
    <param name="movie"
           value="./fr/animations/anim_pesageEnAction.swf" />
     
    <param name="quality"
           value="high" />
     
    <param name="bgcolor"
           value="#ffffff" />
     
    <param name="wmode"
           value="transparent">
     
    <embed src="./fr/animations/anim_pesageEnAction.swf"
           quality="high"
           bgcolor="#ffffff"
           width="430"
           height="120"
           name="anim_pesageEnAction"
           align="right"
           allowScriptAccess="sameDomain"
           type="application/x-shockwave-flash"
           wmode="transparent"
           pluginspage="http://www.macromedia.com/go/getflashplayer" />
     
    </object>
     
     
     
     
     
     
    </div>
     
    <div>
     
    <div id="cadreGaucheAccueil">
     
    <a href="./fr/secteursActivite.php" title="">
     
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
                            codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                            width="350"
                            height="262"
                            id="accueil"
                            align="middle">
     
                    <param name="allowScriptAccess"
                           value="sameDomain" />
     
                    <param name="movie"
                           value="./fr/videos/accueil/accueil.swf" />
     
                    <param name="autostart"
                           value="true" />
     
                    <param name="loop"
                           value="true" /> 
     
                    <param name="quality"
                           value="high" />
     
                    <param name="bgcolor"
                           value="#ffffff" />
     
                    <param name="wmode"
                           value="transparent">
     
                    <embed src="./fr/videos/accueil/accueil.swf"
                           quality="high"
                           bgcolor="#ffffff"
                           width="350"
                           height="262"
                           name="accueil"
                           align="middle"
                           autostart="true"
                           loop="true"
                           allowScriptAccess="sameDomain"
                           type="application/x-shockwave-flash"
                           wmode="transparent"
                           pluginspage="http://www.macromedia.com/go/getflashplayer" />
     
                    </object>
     
    </a>
     
    </div>
     
     
    <div id="cadreDroiteAccueil">
     
    <p class="centrer">
     
    <h3 class="centrer">
    CAPTELS S.A.
     
    </h3>
     
    <p class="centrer">
     
    <br />
    <br />
    1 chemin du Mazet
     
    <br />
    ZAE des Avants
     
    <br />
    34270 Saint-Mathieu de Tr&eacute;viers
     
    <br />
    FRANCE
     
    <br />
    <br />
     
    <img src='./fr/images/telephone.gif' alt='Téléphone' title='Téléphone' width='32' height='32' border='0' align='middle' />&nbsp;&nbsp;33 (0) 467 552 570
     
    <br />
    <img src='./fr/images/fax.gif' alt='Fax' title='Fax' width='32' height='32' border='0'  align='middle' />&nbsp;&nbsp;33 (0) 467 553 812
     
    <br />
    <img src='./fr/images/email.gif' alt='Email' title='Email' width='32' height='32' border='0'  align='middle' />&nbsp;&nbsp;<a href="mailto:captels@mnet.fr" title="">captels@mnet.fr</a>
     
    </p>
    </p>
     
    </div>
     
    </div>
     
     
    <div id="piedPageAccueil">
     
    <table align="center">
     
    <tr>
     
            <td>
            <a href="./fr/secteursActivite.php" title="">
            <img src="./fr/images/drapeauFrance.gif" border="1" alt="" />
     
     
            <br />
            ENTRER
            </a>
     
            </td>
     
            <td class="tdSeparateur">
            </td>
     
            <td align="center">
            <a href="./fr/secteursActivite.php" title="">
            <img src="./fr/images/drapeauAnglais.gif" border="1" alt="" />
     
     
            <br />
            ENTER
            </a>
     
            </td>
     
            <td class="tdSeparateur">
            </td>
            <td class="tdSeparateur">
            </td>
     
     
            <td>
            <div class="flash">
     
            + de 20 ans
            <br />
            d'expérience
            <br />
            du pesage
            </div>
            </td>
     
     
        </tr>
     
     
        </table>
     
     
    </div>
     
     
     
    </body>
    </html>
    Pourquoi ces résultats, et comment remplacer les balises non valides ?

    Merci.

  2. #2
    Membre régulier
    Profil pro
    Inscrit en
    Juin 2003
    Messages
    61
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2003
    Messages : 61
    Points : 76
    Points
    76
    Par défaut
    Salut,

    <embed> est effectivement obsolète.

    Bon week-end

  3. #3
    Membre chevronné Avatar de Mister Nono
    Homme Profil pro
    Ingénieur Mathématiques et Informatique
    Inscrit en
    Septembre 2002
    Messages
    2 234
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Mathématiques et Informatique
    Secteur : Santé

    Informations forums :
    Inscription : Septembre 2002
    Messages : 2 234
    Points : 1 897
    Points
    1 897
    Par défaut
    Suite à ta suggestion, J'ai remplacé :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
     
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
                            codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                            width="350"
                            height="262"
                            id="accueil"
                            align="middle">
     
                    <param name="allowScriptAccess"
                           value="sameDomain" />
     
                    <param name="movie"
                           value="./fr/videos/accueil/accueil.swf" />
     
                    <param name="autostart"
                           value="true" />
     
                    <param name="loop"
                           value="true" />
     
                    <param name="quality"
                           value="high" />
     
                    <param name="bgcolor"
                           value="#ffffff" />
     
                    <param name="wmode"
                           value="transparent">
     
                    <embed src="./fr/videos/accueil/accueil.swf"
                           quality="high"
                           bgcolor="#ffffff"
                           width="350"
                           height="262"
                           name="accueil"
                           align="middle"
                           autostart="true"
                           loop="true"
                           allowScriptAccess="sameDomain"
                           type="application/x-shockwave-flash"
                           wmode="transparent"
                           pluginspage="http://www.macromedia.com/go/getflashplayer" />
     
    </object>
    Par :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
     
    <!--[if IE]>
     
    <object type="application/x-shockwave-flash" data="./fr/videos/accueil.swf" width="350" height="262" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
     
    <param name="movie" value="./fr/videos/accueil.swf" />
     
    <img src="./fr/images/logoCaptels.gif" alt="INSTALLER LE PLUGIN FLASH POUR VISUALISER L'ANIMATION" />
     
    </object>
     
    <![endif]-->
     
     
     
    <!--[if !IE]> <-->
     
    <object type="application/x-shockwave-flash" data="./fr/videos/accueil.swf" width="350" height="262">
     
    <param name="movie" value="./fr/videos/accueil.swf" />
     
    <img src="./fr/images/logoCaptels.gif" alt="INSTALLER LE PLUGIN FLASH POUR VISUALISER L'ANIMATION" />
     
    </object>
     
    <!--> <![endif]-->
    Mais là CELA NE FONCTIONNE PLUS ni dans Mozilla, ni dans iexplore.

    Où donc est l'astuce.

    Merci encore.

  4. #4
    Membre chevronné Avatar de Mister Nono
    Homme Profil pro
    Ingénieur Mathématiques et Informatique
    Inscrit en
    Septembre 2002
    Messages
    2 234
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Mathématiques et Informatique
    Secteur : Santé

    Informations forums :
    Inscription : Septembre 2002
    Messages : 2 234
    Points : 1 897
    Points
    1 897
    Par défaut
    Alors là je ne comprends pas.

    Personne ne met du flash dans du HTML ?

    Comment se séparer de la balise embed demandée par certain navigateurs (car cette balise empêche la validation du document par W3C) ?

    Merci encore.

  5. #5
    Membre régulier
    Profil pro
    Inscrit en
    Juin 2003
    Messages
    61
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2003
    Messages : 61
    Points : 76
    Points
    76
    Par défaut
    Je ne suis pas spécialiste, mais il doit y avoir une erreur d'interprétation puisque la piste que je t'ai donnée fonctionne très bien :-/

  6. #6
    Membre chevronné Avatar de Mister Nono
    Homme Profil pro
    Ingénieur Mathématiques et Informatique
    Inscrit en
    Septembre 2002
    Messages
    2 234
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Mathématiques et Informatique
    Secteur : Santé

    Informations forums :
    Inscription : Septembre 2002
    Messages : 2 234
    Points : 1 897
    Points
    1 897
    Par défaut
    Voilà, je fais comme tu me dis et je retire donc la balise embed :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
     
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
            codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
            width="220"
            height="120"
            id="anim_captels"
            align="left">
     
    <param name="allowScriptAccess"
           value="sameDomain" />
     
    <param name="movie"
           value="./fr/animations/anim_captels.swf" />
     
    <param name="quality"
           value="high" />
     
    <param name="bgcolor"
           value="#ffffff" />
     
    <param name="wmode"
           value="transparent">
     
     
    </object>
    L'animation fonctionne bien avec IExplore mais ne fonctionne plus avec Mozilla Firefox.

    Alors, peux-tu m'expliquer comment tu fais pour que cela fonctionne ?

    Merci encore.

Discussions similaires

  1. Xhtml valid W3c mais pas WDG
    Par ceweb dans le forum Balisage (X)HTML et validation W3C
    Réponses: 11
    Dernier message: 06/12/2008, 18h21
  2. [W3C] Validation W3c : XHTML 1.0 Strict
    Par van-bom dans le forum Balisage (X)HTML et validation W3C
    Réponses: 3
    Dernier message: 30/03/2008, 17h38
  3. Doctype XHTML 100 % valide W3C
    Par sliderman dans le forum Langage
    Réponses: 3
    Dernier message: 19/02/2008, 11h00
  4. [XHTML 1.1] Erreurs de validation W3C
    Par schats dans le forum Balisage (X)HTML et validation W3C
    Réponses: 43
    Dernier message: 17/07/2007, 20h59
  5. [W3C] validations w3c xhtml
    Par Shadow69 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 27/04/2006, 12h53

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