SEO Fundamentals

Images & Alt Text

Images often represent 50% of a page's weight. Optimizing them improves your SEO, loading speed, and accessibility.

Why is the Alt Attribute Important?

The alt attribute (alternative text) describes the image content for:

Google Images

Image search rankings

Accessibility

Screen readers

Fallback

If image fails to load

Code example:

<img src="chocolate-cake.jpg" alt="Homemade chocolate cake decorated with strawberries" width="800" height="600">

Best Practices

1. Be descriptive and relevant

Describe what the image shows, not what you want it to be.

✓ Good

alt="Team of developers working on a project in a modern office"

✗ Bad

alt="image1" or alt="photo"

2. Include keyword naturally

If relevant, include your keyword in the alt text, but don't force it. Keyword stuffing is penalized.

3. Descriptive file names

Rename your images before uploading.

✓ Good

homemade-chocolate-cake.jpg

✗ Bad

IMG_20240115_123456.jpg

4. Specify width and height

Defining dimensions prevents "layout shift" (CLS) during loading.

<img src="photo.jpg" alt="Description" width="800" height="600">

5. Use lazy loading

Load images only when they enter the viewport.

<img src="photo.jpg" alt="Description" loading="lazy">

6. Modern formats

Use WebP or AVIF for lighter images with the same quality.

WebP (-25-35%) AVIF (-50%) JPEG/PNG

Our audit automatically checks

Images with alt attribute
Images without alt (list)
Lazy loading enabled
Dimensions defined
Analyze my images