Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display alt text for an image in chrome

The image with invalid source displays an alternate text in Firefox but not in chrome unless the width of an image is adjusted.

  <img height="90" width="90"     src="http://www.google.com/intl/en_ALL/images/logos/images_logo_lg.gif"     alt="Image Not Found"/> 

How to display the alt text for an image?

like image 531
Achaius Avatar asked Mar 22 '11 03:03

Achaius


People also ask

How do you show alt text in Chrome?

Chrome™ browser: point to the image with your mouse, right-click and choose Inspect from the quick menu (or use Ctrl-Shift-I on keyboard). A new pane will open at the right of your screen with the HTML code highlighted for that element. You can then view the alt text and other attributes for the image.

How do I show alt text on an image?

To add alt text to a picture, shape, chart, or SmartArt graphic, right-click on the object and choose Format Picture. In the Format Picture panel, choose the Layout and Properties icon. Then choose Alt Text.

Why is alt text not showing up?

1) Your ALT text will not display if the length of your ALT does not fit within the specified width of an image. So, be sure your message is short enough to fit.


1 Answers

If I'm correct, this is a bug in webkit (according to this). I'm not sure if there is much you can do, sorry for the weak answer.

There is, however, a work around which you can use. If you add the title attribute to your image (e.g. title="Image Not Found") it'll work.

like image 69
Prisoner Avatar answered Oct 18 '22 17:10

Prisoner