Quantcast
Channel: Is putting a div inside an anchor ever correct? - Stack Overflow
Viewing all articles
Browse latest Browse all 17

Answer by Chris for Is putting a div inside an anchor ever correct?

$
0
0

If you change it to a block-style element, then no, it's no longer 'wrong', but it probably won't validate. But it doesn't make much sense to do what you're doing. You should either just keep the anchor tag as a block level element with no inner div, or put the div on the outside.


Viewing all articles
Browse latest Browse all 17

Trending Articles