WordPress.org

Support

Support » Themes and Templates » [Resolved] Alt Text Not Showing

[Resolved] Alt Text Not Showing

  • kennethwatt
    Member

    @kennethwatt

    I have the following code. When I hover over it, the alt text doesn’t show.
    Any help much appreciated.
    <img src="<?php bloginfo('stylesheet_directory'); ?>/icons/chart.png" alt="Vote on the Polls" />
    Thanks in advance,
    Kenneth

Viewing 4 replies - 1 through 4 (of 4 total)
  • MAzCastro
    Member

    @fmacastro

    “the alt text doesn’t show”

    Wht browser are you using?

    kennethwatt
    Member

    @kennethwatt

    Chrome

    kennethwatt
    Member

    @kennethwatt

    Sorry – Must be a Chrome Issue.

    bobeaston
    Participant

    @bobeaston

    Your expectations are due to a bug in Internet Explorer. ALT text was never intended to be displayed as hover or tooltip text. ALT text is intended to be displayed ONLY when the image is not displayable, such as in text-only browsers and screen readers for the blind. IE made a mistake in their implementation long ago, and we all got used to it.

    The TITLE text causes hover / tooltip text to be displayed by browsers that are standards compliant.

    Specify title=”…some text…” as an additional attribute on the <img > element and you will see what you expect.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Alt Text Not Showing’ is closed to new replies.