close the IMG tag?

Zoid

New Member
If I wanted an image as a link would I do it like this?

<a href="page.html"><img border="0" src="picture.gif" height="10" width="15"></a>

...without closing the <img> tag, or like this:


<a href="page.html"><img border="0" src="picture.gif" height="10" width="15"></img></a>


I am trying to make everything xhtml friendly. Thanks.
 

conor

New Member
To make it XHTML friendly you should also define the mesurement, ie. width="10px" or else it could be interpreted as 10em or 10%.
 
Top