HTML img Tag

Example

How to insert an image:
<img src="smiley.gif" alt="Smiley face" height="42" width="42">

Teach Yourself  by BH24 HTML Editor Tool!

The <img> tag is supported in all major browsers.

Definition and Usage

The <img> tag defines an image in an HTML page.
The <img> tag has two required attributes: src and alt.
Note: Images are not technically inserted into an HTML page, images are linked to HTML pages. The <img> tag creates a holding space for the referenced image.
Tip: To link an image to another document, simply nest the <img> tag inside <a> tags.