Images and Objects

img

Inserts an image. This element has two required attributes “src” which specifies the location or source of the image file and “alt” which is used as alternative text description of the image. When an image is used as link some browsers display a box around it, used CSS style “border:0” to get rid of it.

Syntax

<img attributes />

Example

<a href=”http://www.htmlsoup.net”>
   <img alt=”clickhere” src=”images/clickbutton.jpg” style=”border:0;”/>
</a>

Related tags

CSS Properties

HTML attributes

Search the Soup!