Support » Accessibility » the role of “title” in the media library attachment details

  • Sandy Feldman

    (@sandyfeldman)


    It used to be that when the title was added in media library attachment details the code it generated looked like this: <img src="foo.jpg" alt="the guy at the place with the thing" />
    The title would show up on hover, and get read by a screen reader.

    This seems to not be happening anymore. When did this change? Did it change everywhere? Does this behavior depend on what version of WordPress you’re using? The theme?

    Does the title still get read out loud at all by a screen reader? Is this just meta data about the image now?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Sandy Feldman

    (@sandyfeldman)

    the code it generated looked like this:

    <img src="foo.jpg" alt="the guy at the place with the thing" title="some extra verbiage" />

    Joe Dolson

    (@joedolson)

    The title attribute will be read, in some cases, by screen readers. It depends on the settings of the screen reader and whether or not there is an alt attribute present.

    If there is no alt attribute, but there is a title attribute, many screen readers will pick that up to provide the accessible name of the image. Some screen readers will read both; some will read only one.

    However, the title attribute is only ever available to two user interactions: mouse hover or screen readers. It is not available to most users of touch devices or keyboard. Where it is used by screen readers, it is frequently the source of double readings of content, and is for that reason not uncommonly disabled.

    The use of the title field in the WordPress media library now is to provide a title for the image used in the list view of the media library and to provide searchable meta data.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.