I am confused about the difference between these two markup examples.
<div class="pic">
<img src="http://www.lorempixel.com/333/333" alt="">
</div>
css
.pic {
width: 600px;
background: red;
}
Now I can see my background, but when I try another markup like the one below, I can't figure it out..
Another markup:
<img class="pic" src="http://www.lorempixel.com/333/333" alt="">
Same style..