← All references
<img>
<img src="url" alt="description">Embed an image.
<img> Tag
Embeds an image. src is required, alt is required for accessibility.
``html\n<img src="photo.jpg" alt="A sunset" width="400">\n``
Always include alt — it shows if the image fails and is read by screen readers.
Example
<img src="https://placehold.co/300x150/emerald/white?text=w3primecode" alt="w3primecode placeholder" width="300">