GOO Posted November 25, 2006 Share Posted November 25, 2006 Hi!There is another problem occur!I put an alternate text for my image.In IE, the alternate text is displayed.But in Firefox, there is no alternate text displayed.Why?Hope you guys can help me.Thanks! Link to comment Share on other sites More sharing options...
boen_robot Posted November 25, 2006 Share Posted November 25, 2006 Depends what you mean by "displayed". The alt text should only be used when the image is not available. If you want a tooltip (the thing IE shows when your mouse is over an image with alt text), then use the "title" attribute instead. Example: <img src="image.gif" alt="Text that appears in both IE and FF as well as other user-agents if the image is not there or is simply not downloadable for some reason. Screen readers I think also read this text." title="This text will appear as a tooltip in all major browsers, including IE and FF." /> Link to comment Share on other sites More sharing options...
GOO Posted November 26, 2006 Author Share Posted November 26, 2006 Wow!!!It Works!!!Thanks!!!!I think i know the difference now Link to comment Share on other sites More sharing options...
holmedwa04 Posted November 26, 2006 Share Posted November 26, 2006 yes, alt text is text that will be displayed if the picture is unavaiable or if the picture is loading and title is displayed in a small yellow box if the user hovers over the picutre.I used this particular attribute when I had picture linking to somewhere, so when you hovered it said "Buy this book from Tarquin" I think. If you would like to look at it follow the link below:Click Here Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now