Choose an image for the task

In the store, the photo is intended to enable product evaluation; the guide may explain the step. The general illustration does not replace a photo of the connector, dimensions or detail important for purchase. First, decide what you want the viewer to understand from the image.

Google recommends providing images in supported HTML, meaningful context, and descriptive alt text. An image embedded solely as a CSS background is not treated the same as an image in an img element.

Source: Google: good practices for images ↗

Prepare variants instead of one huge file

Adjust widths to actual display locations. The browser can select the variant by srcset and sizes. Check the format and compression on a photo with fine details, not just on a plain background. Too much compression may make it difficult to evaluate the product.

An example of working with the material

The 5000 pixel wide photo is intended to serve as a thumbnail and a larger preview. Prepare separate variants for these uses rather than sending the full file to each user. Keep the original out of the public thumbnail set.

Take care of the place and moment of charging

Provide dimensions or correct proportions so the browser can reserve space. Images far below the first screen may benefit from deferred loading. Don't automatically apply it to the most important photo visible upon entry - check the effect on LCP.

Also evaluate framing on your phone. A technically correct file may truncate an important inscription or product element. Inspection on a wide monitor does not replace evaluation of a small screen.

An alternative description is intended to convey meaning

Describe important content in the context of the page. Do not add a list of positioning phrases. A decorative image can have blank alt text; an important graph needs an accessible explanation of the data beyond the bitmap itself.

After deployment, check for broken links, variant loading, and appearance on slower connections. Optimization is complete when the image still serves its purpose, not just when the file size is smaller.

FOR USE IN PRACTICE

Your checklist

  • Determine the role of the photo or illustration.
  • Prepare dimension variants and check the quality.
  • Reserve your seat, control your LCP image.
  • Match the alt text to the context.

Sources and news

Documentation reviewed on September 21, 2026. The examples in the article are illustrative - they do not describe audit results or client implementation.

Educational material developed with the help of AI based on the indicated sources. It does not replace an individual assessment of the website by a specialist. Editorial rules.