About 484 letters

About 2 minutes

#HTML's image

The HTML image element is marked up using the <img> tag.

<img src="image-url" alt="alternative text" width="width" height="height">
  • The alternative text is displayed when the image fails to load.

Example:

<img src="https://xplanc.org/primers/icon.svg" alt="alternative text" width="128px" height="128px">

HTML Image

alternative text

Created in 5/16/2025

Updated in 6/6/2025