|
Posted by Harlan Messinger on August 18, 2006, 3:37 pm
Please log in for more thread options
Els wrote:
> David Stone wrote:
>
>> At first glance, alt and title seem to be a bit of a duplication
>> for img tags in html.
>>
>> Are there any _practical_ differences for the html 4 strict
>> doctype?
>>
>> What would be the consequences (if any) of using title instead of
>> alt?
>
> They are two entirely different things, regardless of which type of
> html you use. Title gives you a tooltip when hovering over the image,
> while alt gives you an alternative text if the image doesn't load for
> whatever reason. IE uses the alt for the tooltip if the title is
> absent, but other browsers don't do that.
And, by the way to the OP, title doesn't have anything particularly to
do with images. All content tags in the body can have a title.
|