HTML

Don't place Block Elements inside Inline Element

<a href="#">
    <img src="images/test.jpg">
    <div>inline element containing a block element! No!</div>
</a>

Block level elements:

p, div, fieldset, form, ol, ul, pre, blockquote,  table, h1, h2, h3, h4, h5, h6

Inline elements:

a, button, input, label, select, textarea, img, span
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License