Back to Concepts

<img>

Embeds an image.

The `<img>` tag is used to embed an image in an HTML page. Images are not inserted into a web page; they are linked to web pages. The `<img>` tag creates a holding space for the referenced image. The `src` attribute specifies the path to the image.

Live Example & Code

Preview Output
<img src="https://via.placeholder.com/150" alt="Placeholder Image" />
HTMLViz
© 2026 HTMLViz. Open Source Learning.