Image and alt text

The img element shows a picture; alt describes it for people who can't see it.

Also called: img, alt, alt attribute

Domain
Languages
Type
Term
Source
General
Language
HTML

In plain English

Alt text is read by screen readers and shown when the image fails to load. Decorative images get an empty alt="" so they are skipped. Always set width and height so the page doesn't jump while loading.

Example

Every photo has alt text, so screen readers can describe it.

In code

<img src="villa.webp" alt="Infinity pool facing the ocean" width="1200" height="800" loading="lazy">

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30