Prompt

I'm building a content site and need responsive images by breakpoint

Technology / CDN & Edge Infrastructure1 observationLast seen Nov 3, 2026

Latest observation

Nov 3, 2026OpenAI APIWeb search: off

To implement responsive images by breakpoint on a content site, the usual approach is:

1) Use srcset + sizes

This lets the browser choose the best image based on viewport width and device pixel ratio.

<img
  src="image-800.jpg"
  srcset="
    image-480.jpg 480w,
    image-800.jpg 800w,
    image-1200.jpg 1200w,
    image-1600.jpg 1600w
  "
  sizes="
    (max-width: 600px) 100vw,
    (max-width: 1024px) 50vw,
    33vw
  "
  alt="Descriptive alt text"
/>

How it works

  • srcset: lists available image widths.
  • sizes: tells the browser how wide the image will be rendered at different breakpoints.
  • The browser picks the most appropriate file automatically.

2) Use <picture> when you need different crops per breakpoint

If mobile and desktop need different aspect ratios or crops, use <picture>:

<picture>
  <source media="(max-width: 600px)" srcset="hero-mobile.jpg">
  <source media="(max-width: 1024px)" srcset="hero-tablet.jpg">
  <img src="hero-desktop.jpg" alt="Hero image">
</picture>

Use this when:

  • mobile needs a portrait crop
  • desktop needs a wide crop
  • you want art direction, not just resizing

3) Recommended breakpoint strategy

A simple set:

  • mobile: up to 600px
  • tablet: 601px–1024px
  • desktop: 1025px+

Example:

<picture>
  <source media="(max-width: 600px)" srcset="image-mobile.jpg">
  <source media="(max-width: 1024px)" srcset="image-tablet.jpg">
  <img src="image-desktop.jpg" alt="Content image">
</picture>

4) Best practices

  • Always include alt
  • Serve modern formats where possible:
    • AVIF
    • WebP
    • fallback JPG/PNG
  • Keep image dimensions accurate to avoid layout shift
  • Use loading="lazy" for below-the-fold images:
    <img loading="lazy" ...>
    

5) If you’re using a CMS or framework

You may want to generate multiple sizes automatically:

  • WordPress: built-in responsive image support
  • Next.js: next/image
  • Gatsby: image plugins
  • Drupal/Contentful/Sanity: transformations/CDN resizing

If you want, I can give you:

  1. a copy-paste HTML solution for your exact breakpoints,
  2. a WordPress/CMS setup, or
  3. a React/Next.js implementation.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.