Screen readers announce images without alt text as "image" or read the filename, leaving millions of visually impaired users guessing what content they're missing.
Lighthouse flags <img> elements that lack an alt attribute entirely. Every image needs one of three things: descriptive alt text for informative images, an empty alt="" for decorative images, or role="presentation" to explicitly mark the image as non-essential. Without these, assistive technology cannot communicate the image's purpose.
[alt] attributes"alt attributeWrite concise text that conveys the image's meaning in context.
<!-- Before: no alt attribute -->
<img src="/team/sarah.jpg">
<!-- After: descriptive alt -->
<img src="/team/sarah.jpg" alt="Sarah Chen, Lead Developer">
<!-- Before: missing alt on functional image -->
<a href="/search">
<img src="/icons/search.svg">
</a>
<!-- After: alt describes the action -->
<a href="/search">
<img src="/icons/search.svg" alt="Search">
</a>
Images that add visual interest but no information should have empty alt text.
<!-- Decorative divider -->
<img src="/divider-ornament.svg" alt="">
<!-- Background pattern in content -->
<img src="/hero-pattern.png" alt="">
For images used purely for layout or spacing, remove them from the accessibility tree.
<!-- Spacer image (consider replacing with CSS) -->
<img src="/spacer.gif" role="presentation">
<!-- Or equivalently -->
<img src="/spacer.gif" alt="" role="none">
<NuxtImg>) still requires alt attributes just like native images. Create a composable to enforce alt text in your components:<script setup lang="ts">
const props = defineProps<{
src: string
alt: string // Required prop enforces alt at build time
}>()
</script>
<template>
<NuxtImg
:src="props.src"
:alt="props.alt"
/>
</template>
eslint-plugin-vuejs-accessibility to catch missing alt attributes during development.longdesc or surrounding text for complex imagesImage alt issues often appear alongside:
Missing alt text often accumulates in blog posts, product pages, and user-generated content areas that grow over time. Unlighthouse crawls your entire site to surface every image lacking proper alt text, generating a comprehensive report you can work through systematically.
HTML Lang Attribute
Learn how to fix missing lang attribute in Lighthouse accessibility audits. The lang attribute helps screen readers pronounce content correctly.
Form Labels
Learn how to fix missing form labels in Lighthouse accessibility audits. Labels ensure form controls are announced properly by assistive technologies.