Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.alttextlab.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Decorative images — icons, dividers, background graphics — should not have alt text. Screen readers skip them when alt="" is present, per W3C WCAG guidelines. The web snippet provides two ways to skip images.

Skip individual images

Add either a CSS class or a data attribute to the <img> tag. CSS class:
<img class="icon atlab-ignore" src="icon.svg" />
Data attribute:
<img class="icon" src="icon.svg" data-atlab-ignore />
Both methods prevent generation. If alt text was previously generated for the image, it will not be applied.

Skip images by size

By default all images are processed regardless of size. To skip small images, set the data-min-natural-size parameter on the snippet script tag to a positive pixel value:
data-min-natural-size="100"
See Installation & configuration for the full parameter reference.