HTML Images

HTML Images

Images can improve the design and the appearance of a web page.

In HTML, images are defined with the <img> tag.

The <img> tag is empty, it contains attributes only, and does not have a closing tag.

The src attribute specifies the URL (web address) of the image.

Example

<img src="img_girl.jpg" alt="Girl in a jacket" width="500" height="600">

Click on the "Try it Yourself" button to see how it works.

Try it Yourself »