Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I feel sort of silly asking this

Status
Not open for further replies.

mtorbin

Technical User
Nov 5, 2002
369
US
but I've noticed today that my ALT tags don't work. They are coded properly, I've never had a problem with them in the past eight years I've been doing this.

so, I checked around and I found other sites where ALT tags weren't working.

Was something changed in the latest spec of HTML and I wasn't paying attention? Please advise.

- MT

Matt Torbin
Web and Graphic Arts Engineer
PEI-Genesis

aim: dgtlby
direct email: mtorbin_at_earthlink.net
 
except for the photo of the catalouges I got text popping up on yuor images on your home page :)


Way away in Australia
 
depends on what browser you are now using.
Only IE shows alt attributes as popup text all the time (incorrectly)

Other browser behave correctly and only show alt attributes when images are turned off.

<pedantic> alt attributes, not tags </pedantic>

Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
To display the alt text as displayed in IE, use the title attribute (e.g. "<img src="img.jpg" alt="This will not be shown" title="This will be shown">")

--Chessbot

"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)
 
Dude, you guys rock. Thank you. OK, so I'm using the title attribute instead. Man does that explain a lot. What version of HTML was the title attribute supported? I don't remember reading about it in 4.0, but then again, that was a long time ago.

Thanks, and as far as our "home page"... LOL, let's just say that was the designer before me. My version is coming soon.

If you're hungry to tear into something, you can check out my personal home page at
- MT

Matt Torbin
Web and Graphic Arts Engineer
PEI-Genesis

aim: dgtlby
direct email: mtorbin_at_earthlink.net
 
Here's my two cents...

It really is browser dependant - here's a quote on IMG tags from w3schools.com (a nifty online reference a frequently visit) :

Mozilla Firefox and the alt Attribute

If you use the alt attribute in Firefox on images and image maps the text will not show on mouse-over as in other browsers.

Firefox uses the alt attribute the way it's meant to be used, like an alternative text if the image won't load, not as a mouse-over text.

Firefox does support mouse-over comments on images or image maps if you use a title attribute in the <img> tag.

Quoted from
And to quote W3C on the same topic ...

Values of the title attribute may be rendered by user agents in a variety of ways. For instance, visual browsers frequently display the title as a "tool tip" (a short message that appears when the pointing device pauses over an object). Audio user agents may speak the title information in a similar context. For example, setting the attribute on a link allows user agents (visual and non-visual) to tell users about the nature of the linked resource.

Quoted from
And, as you can see, this dates back to HTML 4.0

Regards


Jakob
 
... by the way - there is no such thing as a silly question at tek-tips :)

Another TIP : A good companion to this forum is forum215 "HTML, XHTML & CSS (Cascading Style Sheets)" in case you need to search/ask about HTML :)

Best Regards


Jakob
 
Thanks again guys. I am trying out the title attribute now.

You know, it's funny... I spent many years coding by hand and you'd think that after all that time, I would have remembered this. Ugh, back to the books for a refresher course.

Thanks again!

- MT

Matt Torbin
Web and Graphic Arts Engineer
PEI-Genesis

aim: dgtlby
direct email: mtorbin_at_earthlink.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top