W3C quelques erreurs

Romain -  
creadiff Messages postés 483 Statut Membre -
Bonjour, j'ai créé un site en XHTML que je veux valide, au départ je faisais attention, mais après beaucoup de changement j'obtiens 6 erreurs sur le test W3C que je n'arrive pas à résoudre, j'aimerais comprendre ce qui va pas, merci
(je suis en Strict donc les _blank fonctionne pas mais même si je les retires j'ai des erreurs, je règlerais en Transitional mais je veux corrigé avant au cas ou)
_______________________________
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="author" content="moi" />
<meta name="keywords" content="tag" />
<meta name="description" content="descri" />
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="shortcut icon" href="favicon.png" />
<script type="text/javascript" src="menu_onmouse.js"></script>
<title>Accueil</title>
</head>
<body>
<!-- JavaScript -->
<script type="text/javascript">
function showSpoiler(obj)
{
var inner = obj.parentNode.getElementsByTagName("div")[0];
if (inner.style.display == "none")
inner.style.display = "";
else
inner.style.display = "none";
}
</script>
<!-- header -->
<div id="header"></div>
<!-- menus horizontal -->
<ul id="nav">
	<li id="btn01" title="a"><a href="a.html"><span>a</span></a></li>
	<li id="btn02" title="b"><a href="b.html"><span>b</span></a></li>
	<li id="btn03" title="c"><a href="c.html"><span>c</span></a></li>
	<li id="btn04" title="d"><a href="d"><span>d</span></a></li>
	<li id="btn05" title="e"><a href="e.html"><span>e</span></a></li><li id="none"></li>
</ul>
<!-- menus vertical -->
<div id="sidebar">
 <div class="sidebar1">
  <h3>Navigation</h3>
<ul>
   <li><a href="downloads.html">Downloads</a></li>
   <li><a href="sources.html">Sources</a></li>
</ul>
<ul>
   <li><a href="test.html">test</a></li>
   <li><a href="test.html">test</a></li>
</ul>
<ul>
   <li><a href="test.html">test</a></li>
   <li><a href="test.html">test</a></li>
</ul>
<ul>
   <li><a href="test.html">test</a></li>
</ul>
</div>

 <div class="sidebar2">
  <h3>W3C</h3>
<ul>
<a href="http://validator.w3.org/check?uri=referer" target="_blank">
	<img style="border:0;width:72px;height:25px"
        src="pictures/valid-xhtml10.png"
        alt="Valid XHTML 1.0 Strict"
        title="Valid XHTML 1.0 Strict" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank">
    <img style="border:0;width:72px;height:25px"
        src="pictures/vcss-blue.gif"
        alt="CSS Valide !"
		title="CSS Valide !" /></a>
<a href="https://www.mozilla.org/en-US/firefox/" target="_blank">
    <img style="border:0;width:120px;height:15px;margin-left:10px"
        src="pictures/fire.png"
        alt="Fire"
		title="Fire" /></a>
</ul>
</div></div>
<!-- Left menu -->
<div id="leftmenu">
 <div class="left_menu">
  <h3>#3 cat</h3>
<ul>
<a href="test.html" target="_blank"> <img style="border:0;width:120px;height:600px" src="test.png" alt="alt" /></a>
</ul>
</div></div>
<!-- Le corps -->
<div id="corps">
 <h1>> Bienvenue</h1>
  <p>
  
  
Message d'entré<br />

<div class="noteclassic"><div>
<p>
 <b>Note :</b><br />
         Test note.
</p>
</div></div>

Second message
</p>
</div>
<!-- footer -->
<div id="footer"></div>
</body>
</html>

_______________________________
Les erreurs : http://img22.imageshack.us/img22/1329/sanstitreay.png

Merci de m'avoir lu et de m'accorder un peu de votre temps.

7 réponses

  1. boule97 Messages postés 24256 Date d'inscription   Statut Contributeur sécurité Dernière intervention   2 584
     
    Bonjour

    <h1>> <---- à supprimer

    <b>Note :</b> <--- css

    <ul>
    <a href="test.html" target="_blank"> <img style="border:0;width:120px;height:600px" src="test.png" alt="alt" /></a>
    </ul> <---- manque <li></li>

    0
  2. arnoj Messages postés 13 Statut Membre
     
    Il me semble que le target="_blank" n'est pas compatible W3C, il faut l'enlever de tous tes liens...
    0
    1. bg62 Messages postés 23433 Date d'inscription   Statut Modérateur Dernière intervention   2 435
       
      blanc n'est pas compatible avec CE doctype .... ou virer 'blanc', ou modifier l'en-tête :)
      0
    2. bg62 Messages postés 23433 Date d'inscription   Statut Modérateur Dernière intervention   2 435
       
      euh ... blank !!!
      0
  3. creadiff Messages postés 483 Statut Membre 57
     
    Une des erreurs se trouve ici:

    <ul>
    <a href="http://validator.w3.org/check?uri=referer" target="_blank">
    <img style="border:0;width:72px;height:25px"
    src="pictures/valid-xhtml10.png"
    alt="Valid XHTML 1.0 Strict"
    title="Valid XHTML 1.0 Strict" /></a>
    <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank">
    <img style="border:0;width:72px;height:25px"
    src="pictures/vcss-blue.gif"
    alt="CSS Valide !"
    title="CSS Valide !" /></a>
    <a href="https://www.mozilla.org/en-US/firefox/" target="_blank">
    <img style="border:0;width:120px;height:15px;margin-left:10px"
    src="pictures/fire.png"
    alt="Fire"
    title="Fire" /></a>
    </ul>

    Tu as une liste, mais aucun élément dans cette liste.
    Rajoute des li autour des a.

    <ul>
    <li><a href="http://validator.w3.org/check?uri=referer" target="_blank">
    <img style="border:0;width:72px;height:25px"
    src="pictures/valid-xhtml10.png"
    alt="Valid XHTML 1.0 Strict"
    title="Valid XHTML 1.0 Strict" /></a></li>
    <li><a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank">
    <img style="border:0;width:72px;height:25px"
    src="pictures/vcss-blue.gif"
    alt="CSS Valide !"
    title="CSS Valide !" /></a></li>
    <li><a href="https://www.mozilla.org/en-US/firefox/" target="_blank">
    <img style="border:0;width:120px;height:15px;margin-left:10px"
    src="pictures/fire.png"
    alt="Fire"
    title="Fire" /></a></li>
    </ul>
    0
  4. Romain
     
    Merci à vous,

    boule97 > ">" c'est pour mon titre ;)

    Le Transitional autorise le target "blank" j'ai changé mon Doctype c'est bon maintenant.

    Dernière erreur : http://img230.imageshack.us/img230/886/sanstitrebn.png

    Encore merci !
    0
  5. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  6. Romain
     
    Même problème en retirant la balise "vide" :/
    0
  7. creadiff Messages postés 483 Statut Membre 57
     
    Il n'aime pas les <div> vides.... déjà eu ce problème.
    -1
  8. creadiff Messages postés 483 Statut Membre 57
     
    </div></div>

    Second message
    </p>
    </div>
    <!-- footer -->
    <div id="footer"></div>
    </body>
    </html>
    -1