Alt text
Alt text is a short description of an image. Screen readers read it to people who cannot see the picture, search engines use it to understand the page, and browsers show it when the image fails to load. Good alt text makes your app more accessible and easier to find.
Alt text
Alt text is a short description of an image. Screen readers read it to people who cannot see the picture, search engines use it to understand the page, and browsers show it when the image fails to load. Good alt text makes your app more accessible and easier to find.
When to use
- Every meaningful image: products, team members, before/after photos, illustrations that carry information.
- Logos: use the company name.
- Purely decorative backgrounds can be left empty.
Two places to set it
- On the asset (recommended default): in Assets, select the image and fill Alt text in the details panel (up to 300 characters). It is used wherever the asset appears in an Image component that has no alt text of its own, and it makes the file searchable in the library.
- On the Image component: in the inspector's Content tab, the Alt text field overrides the asset's text for that one placement. It accepts a binding, so dynamic images can take their description from a record field (for example Product › Name).
Asset croissants.jpg Alt text: "Fresh croissants on the bakery counter" Image on Home Alt text: (empty → uses the asset's text) Image in Products cards Alt text: Record › Product name
Writing good alt text
- Describe what matters in context: "Technician replacing a boiler valve", not "image1".
- Keep it short, one sentence; do not start with "Image of".
- Include text that appears in the picture (a sign, a label).
- For logos: "Acme Plumbing logo" or just the business name.
- For galleries, the caption field is shown to everyone; alt text is still read by screen readers.
Common mistakes
- Leaving the component's alt as a placeholder such as "alt". Empty is better than wrong; fill the asset's alt text instead.
- Repeating the caption word for word. Fine for screen readers, but a short description is enough.
- Keyword stuffing for search engines; it hurts readability and does not help ranking.
Related
Advanced
The asset's alt text is stored on the assets row and mirrored into project.assets[].alt through an update_asset command, so published versions carry it. The Image renderer uses props.alt || asset.alt || "" for the alt attribute.