Skip to content

Decorative Images and Empty Alt Text (alt="")

Last checked 18 November 2026

An empty alt attribute says you've looked at the image and it has nothing to add. A missing one says nothing at all, and the browser is left to improvise.

What counts as decorative

GOV.UK describes decorative images as generic images that don't give any additional information to the content.1 WebAIM's version has three parts. A decorative image doesn't present important content. It's used for layout or non-informative purposes. And it has no function, so it isn't a link.2

WebAIM's rule is short: decorative images should have alt="".2

MDN puts the reasoning this way. An empty value indicates that the image is not a key part of the content. It gives decoration and tracking pixels as examples.3

Empty is not the same as missing

The two look alike in the code, but they behave differently.

Attribute What can happen
alt="" (empty) Non-visual browsers can leave the image out, and visual browsers hide the broken image icon if the picture fails to load3
No alt at all A browser that can't show the image will display or read the web address or another marker instead4
No alt at all, with a screen reader Some screen readers may announce the file name3

Wikipedia adds that a bare web address leaves the listener unable to tell whether the image matters or is just decoration.4 That's the argument for writing the empty attribute out, rather than leaving it off.

Deciding if an image is decorativeLook at the imageDoes it carry content or act as a link?Yes: write alt textNo: add an empty alt attribute
Content or a job means it needs words.

Two quick tests

Ask what you'd put in the image's place if you couldn't use it. If the answer is nothing, alt="" is probably enough.2

Or ask a second question. If the image were deleted, would important content be lost?2

Common cases

An icon next to a text label. The HTML standard says that when an icon is supplemental to a text label with the same meaning, the alt attribute must be present but empty.5 The word "Help" next to a help icon is the usual picture of it.

A logo next to the name it stands for. The standard says that if a logo sits next to the name of the entity it represents, the logo is supplemental and its alt attribute must be empty.5

An image that repeats the paragraph beside it. A flowchart that restates the text next to it is the standard's example. It calls such an image supplementary and says the alt value must be the empty string.5

A stock photo added for mood. WebAIM's example is a handshake photo on a page of sales promises. Describing it forces meaningless, redundant, wordy alt text on screen reader users, and empty alt text is best.2

When empty is wrong

Never use it on an image that's the only content inside a link or button. WebAIM says empty alt text would never be appropriate there.2 With empty alt text, a screen reader has nothing to go on. The page on image links and buttons covers that case.

It's also wrong for any photo, chart or diagram that carries information the page doesn't state elsewhere. Those need words. The step-by-step method is the place to start.

Another route: leave it to the stylesheet

WebAIM says that when an image is used only for decoration, it's best to take it out of the page content and define it as a CSS background image.2 CSS is the stylesheet language that controls how a page looks. A background image set that way needs no alt text.2

Whichever route you take, a screen reader user then isn't made to sit through a picture that says nothing. Wikipedia describes the empty attribute as skipping over images that don't convey any meaning.4

Reference list

  1. Images, GOV.UK content and publishing guidance, Government Digital Service, UK
  2. WebAIM: Alternative Text, WebAIM, Utah State University
  3. <img>: The Image Embed element, MDN Web Docs, Mozilla
  4. alt attribute, Wikipedia
  5. HTML Standard, the img element and alternative text, WHATWG