S
Suzanne Knapp
Is it ok to use both alt and title attributes in an <img> tag (so all
browsers will honor at least one of them)?
browsers will honor at least one of them)?
Is it ok to use both alt and title attributes in an <img> tag (so all
browsers will honor at least one of them)?
Suzanne said:Is it ok to use both alt and title attributes in an <img> tag (so all
browsers will honor at least one of them)?
Spacers have reason to be in HTML in this day and age.Dan said:You should use them in accordance with their standards-compliant
purpose; the ALT attribute is required for all images and should
consist of whatever the image ought to be replaced with if not
displayed (e.g., in a text browser), which may sometimes be a null
string (for spacers and purely decorative images).
From: Dylan Parry said:Using a pointed stick and pebbles, Suzanne Knapp scraped:
Yes, it is fine. In fact you *should* be using alt attributes for all
your images. With regards support, I don't know of any browsers that
*don't* support the alt attribute, but I think that Netscape 4 didn't
support title attributes.
Internet Explorer will use the alt attribute as a tooltip, which is
wrong, but will use the title attribute in preference if it is present.
Previously in alt.html said:I'd say to be careful about titles, they seem to invariably produce pop out
bubbles which are sometimes a distracting nuisance...
Surely all browsers "honor" alt tags?
So the decision is when to use
"title".
Previously in alt.html said:Thanks. I didn't realize that IE's display of Alt text was erroneous - I
thought that was what was supposed to happen,
Previously in alt.html said:Spacers have reason to be in HTML in this day and age.
From: "Suzanne Knapp said:Newsgroups: alt.html
Date: Mon, 04 Jul 2005 23:58:54 GMT
Subject: Re: alt and title in <img> tag?
The popouts are the effect I was trying for, so Title is fine for that
purpose. They stay on as long as the cursor is over the image, which is
what I want. The only problem is older browsers that don't display title
text, and the Alt text covers those (at least the ones I know about).
Suzanne
Previously in alt.html said:In my experience
there is a time limit for their existence even if the mouse is not moved
(I am
now wondering if there is any setting for this?).
Still, I do think it is
probably a good idea to keep the title nice and short for reasons you can
gather from my last post...
Yes, I know but one *has* to put in alt attributes if one wants to be kosherFrom: Mark Parnell said:On IE, alt does the same.
Yes, and oops! But thanks, loose talk...*Attributes*. alt *attributes*.![]()
Ah so! An interesting point, especially for me who is keen to be sparingUse an empty title (title="") to stop IE from displaying the alt
attribute as a tooltip.
dorayme said:I'd say to be careful about titles, they seem to invariably produce
pop out bubbles which are sometimes a distracting nuisance...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.