Skip to content

Image Placeholders

When the playbook is used as a generation target (image-to-email, scaffolding, AI assistants), the generator never invents image URLs. Every <img> without a real asset becomes a placehold.co URL at the source dimensions. The consumer of the generated output swaps the placeholders for real assets after editing.

Placeholders are for images you don’t have. If the request comes with real assets (images exported from Figma, URLs from the team’s CDN, a list of hosted files in the brief), use those URLs exactly as given, with the same width, height, and alt rules below.

  • Use a real URL only when it was handed to you. Never guess one from a brand name, a domain in the design, or a file name.
  • Mixed is fine: real URLs for the assets you have, placeholders for the rest.
  • An image-to-email run from a screenshot alone has no assets, so every image is a placeholder.
https://placehold.co/{W}x{H}/E0E0E0/E0E0E0/png
  • {W} and {H} — pixel width and height as they appear in the source design.
  • /E0E0E0/E0E0E0 — background color and text color set to the same value, so no text label renders inside the block.
  • /png — required. Without it placehold.co serves SVG, which most email clients (Gmail, older desktop Outlook) don’t render, so every image shows as broken there. PNG works everywhere.

Always include the matching width, height, and alt attributes on the <img> tag.

image-placeholder.html
<img src="https://placehold.co/600x300/E0E0E0/E0E0E0/png"
alt="Hero illustration of a person at a desk"
width="600" height="300"
style="display:block;
max-width:100%;
height:auto;
border:0;
-ms-interpolation-mode:bicubic;" />

Image-to-email generators never reproduce the actual pixels of the source. Linking to external hosts (https://cdn.example.com/...) introduces several failure modes:

  • The host doesn’t exist → broken image in delivery.
  • The host serves a different image than the source → silent visual drift.
  • The model invents a CDN URL from training data → almost always returns 404 or a wrong image.

Solid placeholder blocks make the intent visible: “this is where the asset goes; swap it before sending.”

placehold.co supports a ?text=Label query that overlays text on the block:

https://placehold.co/100x100/EFEFEF/666666/png?text=Image

For hero-sized images this can be useful in mockups. For small icons it produces visually broken output — the “Image” text gets clipped or vertically misaligned at 20×20 or 32×32 dimensions.

The playbook convention is the simpler rule: never use ?text= in generated output. Solid color blocks at exact dimensions render predictably at every size.

Always read the dimensions from the source design. Don’t round, don’t infer “this is probably 600 wide” — measure or count.

Source dimensionsPlaceholder URL
Hero banner 600×300https://placehold.co/600x300/E0E0E0/E0E0E0/png
Logo 220×60https://placehold.co/220x60/E0E0E0/E0E0E0/png
Product card 280×180https://placehold.co/280x180/E0E0E0/E0E0E0/png
Phone icon 20×20https://placehold.co/20x20/E0E0E0/E0E0E0/png
Social icon 28×28https://placehold.co/28x28/E0E0E0/E0E0E0/png
Footer mark 40×40https://placehold.co/40x40/E0E0E0/E0E0E0/png

Every placeholder image still gets a descriptive alt attribute. The alt should describe what the image appears to depict in the source, not “placeholder” or “image”.

  • alt="Company logo" — for a logo
  • alt="Hero illustration of a person at a desk" — for a hero image
  • alt="Phone icon" — for a small support icon
  • alt="Twitter" — for a social-icon link

Alt text isn’t optional. Screen readers, slow connections, image-blocked email clients all depend on it.