Normes W3c, balise DIV et inclusion
bonjour,
Je ne comprend pas pourquoi validator.w3.org interdit l'inclusion de </h2> et </p> dans div ? Ou comment faire pour avoir le même résultat en respectant les normes W3c ?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| #index {
width : 226px;
height : 120px;
position : absolute;
left : 10px;
top : 8px;
background-image : url(imagesindex/habitat1.png);
background-repeat : no-repeat;
background-position : right top;
background-color : #ffffff;
border : 2px solid #ffffff;
color : #333333;
margin-top : 0;
margin-left : 0;
}
<a href="polaroid.html"><div id="index" >
<h2>Polaroid</h2>
<p>..</p>
</div></a> |
http://www.duclut-rasse.com/screen2.png
Merci