Problème validation W3C

Résolu
Bonjour,
J'obtient cette erreur lors de la validation W3C

Line 52, Column 53: document type does not allow element "h2" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag .

			<p><h2 onmouseover='javascript:montre("smenu2");' > Générer des Serials </h2></p>

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>").


Voici la ligne concernée
<p><h2 onmouseover='javascript:montre("smenu2");' > Générer des Serials </h2></p>


Pouvez vous m'expliquer ceci merci d'avance !

PS : C'est du XHTML 1.0 Transitional
Configuration: Windows Vista
Firefox 3.0.1

5 réponses

  1. Essaie en sortant le <h2> du <p>, je ne suis pas sûr que ce soit autorisé...
    3
  2. Ok j'ai résussi, j'ai enlevé les balises <p> et </p> et c'est ok !
    1
    1. Bonsoir,

      Peux-tu nous envoyer le lien de ton site ?

      0
      1. probable balise incorrecte ou pas refermée avant
        un div pas refermé (</div>) interdit un h2 après !
        0