Results 1 to 16 of 16
Nov 14, 2009, 11:30 #1
- Join Date
- Jan 2008
- 0 Post(s)
- 0 Thread(s)
Is surrounding <img> with <div> really necessary?
It's been absolutely ages since I wrote any HTML and my memory needs jogging. I've checked out the reference here but it didn't answer my question.
My question is, when I insert an <img> in the markup (for example just the logo, nothing else), is it best to surround the <img> with <div> like so:
<div><img src="path/to/my/image.jpg" alt="Insert description here."></div>
<img src="path/to/my/image.jpg" alt="Insert description here.">