<DIV> cliquable et validation W3 ?
Bonjour,
j'ai rendu tout un bloc cliquable, mais j'ai des messages d'erreurs lors de la validation W3C
Citation:
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>").
L'extrait de code html/php qui génère ces erreurs :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| <div class="services">
<a href="<?php echo $instance['column_title_link']; ?>" style="display:block;width:100%;height:100%;">
<h3><?php echo $instance['column_title']; ?></h3>
<?php if ( $columnicon ) { ?>
<span class="service-icon">
<?php echo $instance['column_icon']; ?>
</span>
<?php } ?>
<div class="clear"></div>
<p><?php echo $instance['column_content']; ?></p>
</a>
</div> |
Je ne vois pas comment solutionner ça…
:oops:
Comment faire ?
:roll:
Merci pour l'aide
Paul