The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Alt Text Not Showing (5 posts)

  1. kennethwatt
    Posted 7 years ago #

    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,

  2. MAzCastro
    Posted 7 years ago #

    "the alt text doesn't show"

    Wht browser are you using?

  3. kennethwatt
    Posted 7 years ago #


  4. kennethwatt
    Posted 7 years ago #

    Sorry - Must be a Chrome Issue.

  5. bobeaston
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic