> ## 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.

# Ignoring decorative images

> Prevent alt text generation for icons, spacers, and other decorative images.

Decorative images — icons, dividers, background graphics — should not have alt text. Screen readers skip them when `alt=""` is present, per [W3C WCAG guidelines](https://www.w3.org/WAI/tutorials/images/decorative/).

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:**

```html theme={null}
<img class="icon atlab-ignore" src="icon.svg" />
```

**Data attribute:**

```html theme={null}
<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:

```html theme={null}
data-min-natural-size="100"
```

See [Installation & configuration](/web-snippet/installation) for the full parameter reference.
