Results 1 to 10 of 10
Thread: Need to Wrap Image?
Dec 31, 2011, 16:00 #1
- Join Date
- Aug 2010
- 2 Post(s)
- 0 Thread(s)
Need to Wrap Image?
I am building an Articles Index which has a short summary paragraph of an Article, and to the left is a thumbnail image which help to illustrate what the Article is about. The Image is also hyperlinked, so clicking on it takes you to the Article as does clicking on the Article Summary Heading.
Is there a need to "wrap" an Image in tags (e.g. <p>, <div>) or can it just be free-standing?
(I suppose technically my <img> needs to be wrapped in <a> tags, but beyond that...)
Here is what I did in the past...
<p class="image"> <a href="<?php echo BASE_URL; ?>articles/postage-meters-can-save-you-money"> <img src="<?php echo BASE_URL; ?>images/PostageMeter_200x200.jpg" width="200" alt="Picture: Postage Meter. Credit: John Doe, Wikimedia Commons." title="Picture: Postage Meter. Credit: John Doe, Wikimedia Commons." /> </a> <p>