Home → References → HTML Tags →
HTML Tag: img
Image.
Note: When an image is used as a link, many browsers will show a border around the image. To get rid of this you should use CSS (border: 0).
HTML Dog is hosted by Titan Internet
Required Attributes
srcis used to specify the location of the image file.altis used to specify the alternative text of the image, which should be a short description.
Optional Attributes
longdesccan be used to specify the location (in the form of a URI) of a description of the image.heightcan be used to define the height of the image (in pixels). This can also be done with CSS.widthcan be used to define the width of the image (in pixels). This can also be done with CSS.- Common attributes
Example
<img src="http://www.htmldog.com/images/logo.gif" alt="HTML Dog" />

