Aide pour validation W3C

| ^ - ^ | Messages postés 320 Statut Membre -  
Dalida Messages postés 7114 Date d'inscription   Statut Contributeur Dernière intervention   -
Bonjour, j'essaye de valider mon site mais il me met 4 erreurs:
1. Error Line 3, Column 7: required attribute "TYPE" not specified.

<script><endnote><head>



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>.
2. Error Line 21, Column 115: there is no attribute "ALIGN".

…alt="" src="warning-large.png" align="middle"> <span style="color: white



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.
3. Error Line 29, Column 3: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag.

<br>



The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
4. Error Line 96, Column 3: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag.

<br>



The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

S'il vous plaît aidez-moi !!!
Configuration: Windows XP
Firefox 3.0.6

3 réponses

  1. Dalida Messages postés 7114 Date d'inscription   Statut Contributeur Dernière intervention   923
     
    salut,

    1/ il faut ajouter l'attribut par exemple :
    <script type="text/javascript">

    2/ il faut virer ça
    align="middle"

    3/ et 4/ il faut connaitre le contexte donne nous le bout de code (5 lignes avant, 5 lignes après).
    0
    1. | ^ - ^ | Messages postés 320 Statut Membre 36
       
      si je vire le middle, sa enlève le résultat que je voulais obtenir...
      0
      1. Dalida Messages postés 7114 Date d'inscription   Statut Contributeur Dernière intervention   923 > | ^ - ^ | Messages postés 320 Statut Membre
         
        bienvenue chez XHTML, il faut le faire en CSS !
        0
      2. | ^ - ^ | Messages postés 320 Statut Membre 36 > Dalida Messages postés 7114 Date d'inscription   Statut Contributeur Dernière intervention  
         
        Merci KompoZer ^^
        0
      3. Dalida Messages postés 7114 Date d'inscription   Statut Contributeur Dernière intervention   923 > | ^ - ^ | Messages postés 320 Statut Membre
         
        passe à Amaya, c'est un produit du W3C…

        ou mieux, tout à l'éditeur de texte !
        0
  2. | ^ - ^ | Messages postés 320 Statut Membre 36
     
    Bref, si tu peux m'aider et tans pis si tu veux pas je comprendrais très bien:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <script><endnote><head>
    <script><endnote><head>
    <script><endnote><head>
    <script><endnote><head>
    <script></script>
    <meta content="text/html; charset=ISO-8859-1"
    http-equiv="content-type">
    <title>Accueil</title>
    <link rel="stylesheet" media="screen" type="text/css"
    title="Design" href="design.css">
    </head>
    <body>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-7306569-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    <div style="text-align: center;"><big><img
    style="width: 48px; height: 48px;" alt=""
    src="warning-large.png"> <span
    style="color: white;">Vous
    devez naviguez obligatoirement avec Firefox sur ce site. Si vous ne le
    possédez pas encore, téléchargez-le:</span> <a
    href="Firefox%20Setup%203.0.6.zip"><img
    style="border: 0px solid ; width: 110px; height: 32px;" alt=""
    src="get_firefox.png" align="middle"></a><br>
    <img style="width: 48px; height: 51px;" alt=""
    src="info.gif" align="middle"><span
    style="color: white;">Pour profiter
    pleinement de ce site, vous êtes invités à cliquer sur la petite croix
    un peu plus haut (</span><img
    style="width: 15px; height: 16px; color: white;" alt=""
    src="close.PNG"><span style="color: white;">)pour
    fermer la publicité.</span><br style="font-family: Papyrus;">
    </big></div>
    <br>
    <div style="text-align: center;"><big><big
    style="font-family: Papyrus;"><big><span
    style="font-weight: bold;"><img
    style="width: 797px; height: 57px;" alt=""
    src="Title.PNG" align="middle"></span></big></big></big><br>
    </div>
    <table style="text-align: left; width: 1216px; height: 348px;"
    border="1" cellpadding="2" cellspacing="2">
    <tbody>
    <tr>
    <td style="width: 548px; text-align: left; color: white;"><img
    style="width: 24px; height: 24px;" alt=""
    src="Cooliris/cooliris_icon.png" align="middle">
    Cooliris 1.9.1 - Visualisez des milliers d'images sur un mur en 3D. -
    <a href="Cooliris/cooliris.html">Plus de détails</a></td>
    <td style="width: 665px; text-align: left; color: white;"><img
    style="height: 34px; width: 38px;" alt=""
    src="Download%20Statusbar/downloadstatusbar_icon.PNG"
    align="middle"> Download Statusbar 0.9.6.3 - Gérez
    vos téléchargements depuis une barre
    d'état. - Plus de détails</td>
    </tr>
    <tr>
    <td style="width: 548px; text-align: left; color: white;"><img
    style="width: 32px; height: 32px;" alt=""
    src="FireFTP/fireftp_icon.png" align="middle">
    FireFTP 1.0.3 - Transférez vos fichiers en FTP en toute simplicité -
    Plus de détails</td>
    <td style="width: 665px; text-align: left; color: white;"><img
    style="width: 32px; height: 32px;" alt=""
    src="Flagfox/flagfox_icon.png" align="middle">
    Flagfox 3.3.7 - Affichez des informations détaillées des sites internet
    que vous visitez. - Plus de détails</td>
    </tr>
    <tr>
    <td style="width: 548px; text-align: left; color: white;"><img
    style="width: 32px; height: 32px;" alt=""
    src="ImageTweak/imagetweak_icon.png" align="middle">
    ImageTweak 0.17.1 - Améliore le visionnage d'images directes - Plus de
    détails</td>
    <td style="width: 665px; text-align: left; color: white;"><img
    style="width: 28px; height: 32px;" alt=""
    src="PDF%20Download/pdfdownload_icon.png" align="middle">
    PDF Download 2.1.0.1 - Visualise les fichiers PDF rapidement sans Adobe
    Reader - Plus de détails</td>
    </tr>
    <tr>
    <td style="width: 548px; text-align: left; color: white;"><img
    style="width: 32px; height: 32px;" alt=""
    src="Sage/sage_icon.png" align="middle"> Sage 1.4.2 -
    Un léger lecteur de flux RSS et de flux ATOM - Plus de détails</td>
    <td style="width: 665px; text-align: left; color: white;"><img
    style="width: 32px; height: 32px;" alt=""
    src="WebMail%20Notifier/webmailnotifier_icon.png" align="middle">
    WebMail Notifier 1.1.7 - Vous informe si vous avez reçu des mails
    (paramétrable) - Plus de détails</td>
    </tr>
    <tr>
    <td style="width: 548px; text-align: left; color: white;"><img
    style="width: 32px; height: 32px;" alt=""
    src="TimeTracker/timetracker_icon.png" align="middle">TimeTracker
    1.2.4 - Compte le temps que vous passez sur Internet - Plus de détails</td>
    <td style="width: 665px; text-align: left; color: white;"><img
    style="width: 32px; height: 32px;" alt=""
    src="Speed%20Dial/speeddial_icon.png" align="middle">
    Speed Dial  0.7.2.11 - Donne un accès direct à vos pages Web
    favorites - Plus de détails</td>
    </tr>
    <tr>
    <td style="width: 548px; color: white;"><span
    style="font-size: 10pt; font-family: "Verdana","sans-serif";"
    lang="EN-US"><img style="width: 32px; height: 32px;"
    alt=""
    src="Google%20Toolbar%20for%20Firefox/googletoolbar_icon.png"
    align="middle"> Google Toolbar for Firefox 3.1.20081010W -
    Barre Google - Plus de détails<br>
    </span><span
    style="font-size: 10pt; font-family: "Verdana","sans-serif";"
    lang="EN-US"></span></td>
    <td style="width: 665px; color: white;"><img
    style="width: 32px; height: 32px;" alt=""
    src="Forecastfox%20%20l10n/forecastfox_icon.png" align="middle">
    Forecastfox l10n 0.7.2008093001 - Affiche les prévisions météo du monde
    entier - Plus de détails<br>
    </td>
    </tr>
    <tr>
    <td style="color: white;"><img
    style="width: 32px; height: 30px;" alt=""
    src="Screengrab%21/screengrab_icon.png" align="middle">
    Screengrab! 0.95 - Enregistre les pages Web - Plus de détails</td>
    <td style="color: white;"><img
    style="width: 32px; height: 32px;" alt=""
    src="Interclue/interclue_icon.png" align="middle">
    Interclue 1.5.8.1 - Affiche un aperçu de la page où va diriger un lien
    - Plus de détails</td>
    </tr>
    <tr align="center">
    <td colspan="2" rowspan="1"><span
    style="font-size: 10pt; font-family: "Verdana","sans-serif";"
    lang="EN-US"><img style="width: 37px; height: 34px;"
    alt=""
    src="RealPlayer%20Browser%20Record%20Plugin/realplayer_icon.PNG"
    align="middle"> <span style="color: white;">RealPlayer
    Browser Record Plugin 1.0</span></span><span
    style="font-size: 10pt; font-family: "Verdana","sans-serif"; color: white;"
    lang="EN-US"> - Détecte et télécharge du contenu de
    n'importe quel site (Vous devez installer RealPlayer pour l'avoir) -
    Plus de détails</span></td>
    </tr>
    </tbody>
    </table>
    <br>
    <div style="text-align: center;"><a
    title="Document made with KompoZer" href="http://kompozer.net/"><img
    style="border: 0px solid ; width: 80px; height: 15px;"
    alt="Document made with KompoZer"
    src="http://kompozer.sourceforge.net/images/kompozer_80x15.png"
    align="middle"></a>  <a
    href="http://www.mozilla-europe.org/fr/firefox/"><img
    style="border: 0px solid ; width: 80px; height: 15px;" alt=""
    src="ff3.gif" align="middle"></a>  <a
    href="http://www.photofiltre-studio.com/download.htm"><img
    style="border: 0px solid ; width: 80px; height: 15px;" alt=""
    src="photofiltre_icon.png" align="middle"></a> <a
    href="https://notepad-plus-plus.org/"><img
    style="border: 0px solid ; width: 80px; height: 15px;" alt=""
    src="notepad.png" align="middle"></a> <a
    href="http://jigsaw.w3.org/css-validator/#validate_by_uri"><img
    style="border: 0px solid ; width: 80px; height: 15px;" alt=""
    src="css.gif" align="middle"></a> <a
    href="http://validator.w3.org/feed/#validate_by_uri"><img
    style="border: 0px solid ; width: 80px; height: 15px;" alt=""
    src="rssvalid.gif" align="middle"></a> <a
    href="http://validator.w3.org/#validate_by_uri"><img
    style="border: 0px solid ; width: 80px; height: 15px;" alt=""
    src="html401.gif" align="middle"></a> <a
    href="http://standblog.org/blog/post/2008/04/19/10-raisons-de-choisir-Firefox-3"><img
    style="border: 0px solid ; width: 80px; height: 15px;" alt=""
    src="stopie.png" align="middle"></a><br>
    <span style="color: white;">Copyright © Tout droits
    réservés - Il est interdit de copier une information de ce site. </span><img
    style="color: white; width: 34px; height: 34px;" alt=""
    src="warning.png"><span style="color: white;">
    Le webmaster peut savoir si vous le faites !!!</span><br>
    </div>
    </body>
    </html>

    J'aimerais de l'aide pour aligner verticalement centré par rapport au teste avec le CSS
    0
  3. Dalida Messages postés 7114 Date d'inscription   Statut Contributeur Dernière intervention   923
     
    aligner verticalement c'est pas dans la nature de HTML.

    regarde cet article, il y a plusieurs solutions possibles.
    0
    1. | ^ - ^ | Messages postés 320 Statut Membre 36
       
      Dans tout le code que j'ai donné, tu peux corriger les erreurs W3C stp ?
      Et me décrire ce que tu supprime pour que je comprenne ^^
      Merci à toi Dalida, ya des gens en qui on peut avoir confiance
      0
      1. Dalida Messages postés 7114 Date d'inscription   Statut Contributeur Dernière intervention   923 > | ^ - ^ | Messages postés 320 Statut Membre
         
        Dans tout le code que j'ai donné, tu peux corriger les erreurs W3C stp ?
        c'est un forum d'entraide pas de sous traitance.

        te voila un validateur en français si tu préfères.
        0