Bonjour à toutes et à tous,

index.html Erreur éléments non autorisés

Extrait du fichier index.html.
<span class="description">
<h2>Oiseau bleu</h2>
<p>Cette image provient de google</p>
</span>
j'essaie de reproduire un modèle. Les lignes précédentes sont exactement celles du modèle. Il y a deux erreurs.

Validation Output: 2 Errors
1. Line 22, Column 7: document type does not allow element "h2" here; missing one of "object", "ins", "del", "map", "button" start-tag
<h2>Oiseau bleu</h2>
&#9993;
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>").
2. Line 23, Column 6: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag
<p>Cette image provient de google</p>
&#9993;
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>")

Les deux erreurs sont présentes dans le modèle. Or, le modèle semble fonctionner correctement.
Je ne comprends pas cette erreur( je ne sais pas joindre le dossier original en fichier joint).

Avec mes remerciements
Cordialement
Papy
Le span est un élément de type inline et ne peut contenir des éléments de type blocs comme un h2 ou un p. Solution: utiliser un div à la place du span.