WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Alt Text Not Showing (5 posts)

  1. kennethwatt
    Member
    Posted 4 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,
    Kenneth

  2. MAzCastro
    Member
    Posted 4 years ago #

    "the alt text doesn't show"

    Wht browser are you using?

  3. kennethwatt
    Member
    Posted 4 years ago #

    Chrome

  4. kennethwatt
    Member
    Posted 4 years ago #

    Sorry - Must be a Chrome Issue.

  5. bobeaston
    Member
    Posted 4 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