On this page
  1. <img>
  2. Summary
  3. Notes & Best Practices
  4. Example

<img>

Prev: media | Up: media | Next: `<picture>`
Rel: media, Tables & Media Guide
Ref: MDN Web Docs — <img>
Tags: #public #web #html #elements #media #tier/core


Summary

Embeds a raster or SVG image.

Notes & Best Practices

Example

<img
  src="/images/hero.webp"
  alt="Mountain ridge at sunrise"
  width="1200"
  height="675"
  loading="lazy"
/>

Linked from

Related notes