<img> & xHTML

liunx

Guest
<img border="0"> is not supported by xhtml 1.1 - how do you correctly (by xhtml 1.1) remove the border that is put on when using an image as a link?The same way that you do it correctly in XHTML 1.0 and HTML 4.01:<img alt="some pig" src=http://www.webdeveloper.com/forum/archive/index.php/"pig.jpg" style="border:0"/>I seem to remember something about the IMG element being phased out anyway, in favour of OBJECT. Don't have a source for it though.No, it was suggested for future versions XHTML that it the image may get deprecated for the generic object.You should use the CSS border attribute as Charles suggested. You'll find more information on border here:
<!-- m --><a class="postlink" href="http://www.newbiesparadise.com/tutorial-3-22-1-wrap-it-up-part-1-2.html#ss_part_3The">http://www.newbiesparadise.com/tutorial ... _part_3The</a><!-- m --> fact that you had to ask this question in the first place makes me wonder if you are even using XHTML1.1 correctly. Are you passing the correct headers (application/xhtml+xml)?
 
Back
Top